This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] typo in gdb/testsuite/config/gdbserver.exp
- From: Daniel Jacobowitz <drow at false dot org>
- To: Felix Lee <felix dot 1 at canids dot net>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 3 Oct 2004 23:30:25 -0400
- Subject: Re: [patch] typo in gdb/testsuite/config/gdbserver.exp
- References: <20041001073659.AB14A50106A@stray.canids>
On Fri, Oct 01, 2004 at 12:36:59AM -0700, Felix Lee wrote:
> 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.
I seem to remember this breaking my local gdbserver setup, i.e. running
gdbserver on localhost. It's entirely possible that that only happened
because I've goofed my board files, though. I've learned a painful
amount about writing DejaGNU board files in the last couple of months,
so I'll try again...
>
> 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]
>
>
--
Daniel Jacobowitz