This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] relocate.exp tests
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 11 Sep 2003 15:07:49 -0400
- Subject: [PATCH] relocate.exp tests
This patch has been already tested by MichaelC, and deals with the new
output from the thread support library. (I changed the pattern slightly
to make it simpler).
Committed to mainline only.
2003-09-11 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/relocate.exp: Handle new gdb output at startup.
Index: relocate.exp
===================================================================
RCS file: /cvs/uberbaum/gdb/testsuite/gdb.base/relocate.exp,v
retrieving revision 1.3
diff -u -p -r1.3 relocate.exp
--- relocate.exp 22 Jun 2003 18:32:38 -0000 1.3
+++ relocate.exp 11 Sep 2003 18:56:25 -0000
@@ -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\\.(|\r\nUsing 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\\.(|\r\nUsing 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"