Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] fix remote host test failures in gdb.base/dup-sect.exp
@ 2013-04-04 11:09 Sandra Loosemore
  2013-04-04 17:00 ` Pedro Alves
  0 siblings, 1 reply; 4+ messages in thread
From: Sandra Loosemore @ 2013-04-04 11:09 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

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.


[-- Attachment #2: dup-sect.patch --]
[-- Type: text/x-patch, Size: 745 bytes --]

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"

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-04 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04 11:09 [patch] fix remote host test failures in gdb.base/dup-sect.exp Sandra Loosemore
2013-04-04 17:00 ` Pedro Alves
2013-04-04 19:27   ` Sandra Loosemore
2013-04-05  7:21     ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox