This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa:threads] Report when using libthread_db


Michael Elizabeth Chastain writes:
 > Tested on native i686-pc-linux-gnu, red hat linux 8,
 > gcc v2 and v3, dwarf-2 and stabs+.
 > 
 > The extra messages cause regressions in three tests:
 > 
 >   gdb.base/relocate.exp: add-symbol-file relocate.o $offset
 >   gdb.base/relocate.exp: add-symbol-file relocate.o 0
 >   gdb.stabs/weird.exp: Errors reading weirdx.o
 > 
 > The relocate.exp FAILs happened in every configuration,
 > and the weird.exp FAILs happened with -gstabs+.
 > 
 > Looking at gdb.log there doesn't appear to be an actual semantic
 > problem.  Still I would be nervous about sliding this into the release.
 > How about HEAD only, and then fix up the affected tests?
 > 
 > Michael C
 > 
 >   2003-08-05  Andrew Cagney  <cagney@redhat.com>
 > 
 > 	* thread-db.c (verbose_dlsym): New function.
 > 	(thread_db_load): Use verbose_dlsym
 > 	(thread_db_new_objfile): Print that libthread_db was loaded, and
 > 	that thread debugging was enabled.


Here is a patch which I added to the RH gdb, to deal with the
relocate.exp errors. Let me know if it works in your testbed.

I didn't notice the weird.exp one because we don't test with stabs.

elena


--- gdb+dejagnu-5.3.90_20030710/gdb/testsuite/gdb.base/relocate.exp.1   Fri Aug 15 11:20:44 2003
+++ gdb+dejagnu-5.3.90_20030710/gdb/testsuite/gdb.base/relocate.exp     Fri Aug 15 11:23:31 2003
@@ -67,7 +67,7 @@ gdb_reinitialize_dir $srcdir/$subdir
 
 # Load the object file.
 gdb_test "add-symbol-file ${binfile} 0" \
-       "Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\." \
+       "(Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\.)|(Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\..*Using host libthread_db library .*libthread_db.so.*\\.)" \
        "add-symbol-file ${testfile}.o 0" \
        "add symbol table from file \".*${testfile}\\.o\" at\[ \t\r\n\]+\.text_addr = 0x0\[\r\n\]+\\(y or n\\) " \
        "y"
@@ -116,7 +116,7 @@ gdb_test "set \$offset = 0x10000" ""
 
 # Load the object file.
 gdb_test "add-symbol-file ${binfile} \$offset" \
-       "Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\." \
+       "(Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\.)|(Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\..*Using host libthread_db library .*libthread_db.so.*\\.)" \
        "add-symbol-file ${testfile}.o \$offset" \
        "add symbol table from file \".*${testfile}\\.o\" at\[ \t\r\n\]+\.text_addr = 0x10000\[\r\n\]+\\(y or n\\) " \
        "y"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]