This is the mail archive of the gdb-patches@sourceware.org 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]

[RFA] Patch to fix mips-elf failures in simulator for relocate.exp


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"


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