This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] Patch to fix mips-elf failures in simulator for relocate.exp
- From: Fred Fish <fnf at specifix dot com>
- To: gdb-patches at sourceware dot org
- Cc: fnf at specifix dot com
- Date: Thu, 11 May 2006 11:42:06 -0400
- Subject: [RFA] Patch to fix mips-elf failures in simulator for relocate.exp
- Reply-to: fnf at specifix dot com
The attached patch fixes the following mips-elf simulator failures:
< FAIL: gdb.base/relocate.exp: print static_foo
< FAIL: gdb.base/relocate.exp: print static_bar
< FAIL: gdb.base/relocate.exp: print global_foo
< FAIL: gdb.base/relocate.exp: print global_bar
---
> PASS: gdb.base/relocate.exp: print static_foo
> PASS: gdb.base/relocate.exp: print static_bar
> PASS: gdb.base/relocate.exp: print global_foo
> PASS: gdb.base/relocate.exp: print global_bar
-Fred
2006-05-11 Fred Fish <fnf@specifix.com>
* gdb.base/relocate.exp: Use gdb_file_cmd rather than
gdb_load, so it works in the simulator.
Index: gdb.base/relocate.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/relocate.exp,v
retrieving revision 1.5
diff -u -p -r1.5 relocate.exp
--- gdb.base/relocate.exp 13 Jun 2005 16:15:40 -0000 1.5
+++ gdb.base/relocate.exp 11 May 2006 15:37:16 -0000
@@ -137,7 +137,7 @@ if { "${function_foo_addr}" == "${new_fu
gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+gdb_file_cmd ${binfile}
# Check the values of the variables.
gdb_test "print static_foo" "\\\$$decimal = 1"