gdbserver exiting
Kevin Hilman
khilmanATequator.com
Thu Sep 16 09:47:00 GMT 1999
Stan Shebs <shebs@cygnus.com> writes:
> From: Kevin Hilman <khilman@equator.com>
> Date: 15 Sep 1999 13:14:58 -0700
>
> I working on a port of gdbserver. I'd like to convince gdbserver to
> exit when gdb exits since it's a multi-user environment and each user
> will run their own instance of gdbserver. Is there anything part
> of the protocol to do this, or should I add my own extention to
> the protocol.
>
> Yes, the existing "k" packet should do what you want. If GDB has a
> live connection via "target remote", and you quit, it will send a
> "k" packet. In fact, my version of gdbserver exits when it receives
> a "k", unless you're using extended-remote, what version are you
> using? From gdbserver/server.c:
This was my stupidity here. I was getting the 'k' packet, but
my kill_inferior() wasn't doing the right thing.
Thanks!
-kev-
More information about the Gdb
mailing list