This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Extended a new target from target remote
- From: "Joshua D. Boyd" <jdboyd at etinternational dot com>
- To: gdb at sourceware dot org
- Date: Mon, 26 Oct 2009 19:42:02 -0400
- Subject: Extended a new target from target remote
I'm trying to work on extensions to GDB for a remote cluster. To do
this I am creating an intermediate GDB server to talk to the compute
hardware.
Using the normal old GDB remote serial protocol works perfectly, but I'm
having trouble figuring out what to do on startup. When the user in GDB
types "target remote server:2345", after the connection is established
it would be handy to be able to send more information (such as the list
of nodes that the job is spread over) that had be set using set commands
before GDB starts trying to set "Hc-1" or reading the general registers.
Is there any hook to do this, without modifying remote.c? What I don't
want to have to do is create a new "target cluster" which would end up
mostly duplicating the code in remote.c.
Thank you.