This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] fix remote host test failures in gdb.base/dup-sect.exp
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Wed, 3 Apr 2013 21:15:45 -0600
- Subject: [patch] fix remote host test failures in gdb.base/dup-sect.exp
The two tests at the end of gdb.base/dup-sect.exp have been failing in
remote-host i686-mingw32 testing because the file containing the
stripped debug information isn't being made available on the remote
host. I stole this fix from another test case that also uses
gdb_gnu_strip_debug to produce separate debug info.
OK to commit?
-Sandra
2013-04-03 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.base/dup-sect.exp: Copy debug info file to remote host.
Index: gdb/testsuite/gdb.base/dup-sect.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/dup-sect.exp,v
retrieving revision 1.5
diff -u -p -r1.5 dup-sect.exp
--- gdb/testsuite/gdb.base/dup-sect.exp 1 Jan 2013 06:33:25 -0000 1.5
+++ gdb/testsuite/gdb.base/dup-sect.exp 4 Apr 2013 03:07:40 -0000
@@ -74,6 +74,13 @@ if {$result != 0} {
}
pass $test
+# gdb_gnu_strip_debug puts the debug info in $binfile.debug. Make sure that
+# file is available on the remote host.
+set debugfile $binfile.debug
+if { [is_remote host] } {
+ set debugfile [remote_download host $debugfile]
+}
+
clean_restart $executable
gdb_test "p/d *(const char *) &var1" " = 1" "var1 after strip"