Re: Remote target (CRIS) DejaGNU config scripts

Daniel Jacobowitz
2004-02-23T15:39:28Z

On Mon, Feb 23, 2004 at 04:37:08PM +0100, Orjan Friberg wrote:
> Daniel Jacobowitz wrote:
> >
> >I've attached a modified version that I'm using as I type. It works
> >pretty much OK. You may need to change host_exec to server_exec in the
> >call to gdbserver_gdb_load in config/gdbserver.exp, depending on your
> >setup.
>
> Thanks Daniel, I think I'm halfway there. One thing has me puzzled
> though, hostname vs. sockethost (from your example):
>
> >set_board_info hostname innovator
> >set_board_info sockethost "innovator:"
>
> Substituting innovator with my board's IP address (10.13.8.125) this
> results in:
>
> On the board: gdbserver 10.13.8.125:2346 <file>
> On the host: target remote 10.13.8.125:2346
>
> But the gdbserver should be started with the host's IP address as an
> argument, not the IP address of the board itself, right? (Changing the
> sockethost variable to the host's IP address only results in the reverse
> situation, which means "target remote" will try and listen to a local
> port.) Or am I totally missing something?

All you're missing is that gdbserver ignores the IP specified - it just
wants there to be a colon. When I do it by hand I say ":5555".
Theoretically, gdbserver should parse the IP, and make sure only to
accept a connection from that IP... but it doesn't.

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer