This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Protocol Translation (Apologies for LONG email)
Hi Bill,
Thanks for your reply...
On Wed, 2004-02-11 at 13:48, Bill Gatliff wrote:
> Could you make a gdbserver-like proxy utility, that would launch before
> gdb and listen on a port on localhost? Gdb would then connect to that
> port with RSP (or RDI or whatever), and you could translate the incoming
> messages to whatever protocol you needed on the ICE end.
Hmmm, good idea, I'd not thought of that. I've not really looked at the
gdbserver code, so I think I'll have a dig around in the morning. It
sounds like what I'm after...
> Your server program could parse a configuration file, which might
> contain instructions to download the application to the target before
> gdb connects, or other housekeeping matters.
I'm not sure I understand you here, "parse a configuration file"?
> Once connected, you could use gdb's "maintenance" commands to send
> out-of-band messages for the things that don't translate well between
> RSP and your target protocol.
Do all GDB messages go via the gdbserver?
> This is not unlike how gdbserver, the BDI2000, and some versions of the
> Wiggler work, and it wouldn't require modification of a single line of
> gdb source code.
That's a plus. I'm still flip-flopping between actually adding-IN to
the GDB code or (like this) adding-ON to it.
Thanks again for your help.
Andrew