[patch] typo in gdb/testsuite/config/gdbserver.exp

Felix Lee felix.1@canids.net
Fri Oct 1 07:37:00 GMT 2004


when doing host-x-host testing to a remote gdbserver,
gdbserver.exp will send an executable to the target host (using
rsh or whatever), and then it tries to run it with gdbserver on
the remote target, but it uses the name of the local executable,
not the remote executable, so that fails.

gdb/testsuite/ChangeLog:

2004-09-30  Felix Lee  <felix+log1@specifixinc.com>

        * config/gdbserver.exp (gdb_load): Use right filename on remote.

Index: gdb/testsuite/config/gdbserver.exp
diff -u -p -r1.1.1.2 gdbserver.exp
--- gdb/testsuite/config/gdbserver.exp  8 Jul 2004 13:06:50 -0000       1.1.1.2
+++ gdb/testsuite/config/gdbserver.exp  1 Oct 2004 07:33:56 -0000
@@ -207,7 +207,7 @@ proc gdb_load { arg } {
        }
     }
 
-    set res [gdbserver_gdb_load $host_exec]
+    set res [gdbserver_gdb_load $server_exec]
     set protocol [lindex $res 0]
     set gdbport [lindex $res 1]
 



More information about the Gdb-patches mailing list