This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MI attach stop reason
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Andrew Burgess <aburgess at broadcom dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 6 May 2013 14:37:20 +0400
- Subject: Re: MI attach stop reason
- References: <517FE37E dot 3040308 at broadcom dot com>
> After sending the -target-attach gdb replies with a "*stopped" message,
> this seems fine, however, there's no reason field given.
I am not a specialist of the MI interface, but FWIW I do not have
any a priori objection...
> Next I had a look down the reason list that's here:
>
> http://sourceware.org/gdb/current/onlinedocs/gdb/GDB_002fMI-Async-Records.html
>
> and I think there are only two options, one would be to reuse the
> "signal-received" reason, though I'm not sure this is great, or I
> could add a new reason "attached". Or is there something on the list
> that I've not though of?
Personally, I would avoid re-using "signal-received", because some
targets (Eg: Darwin, IIRC) do not send a signal to the inferior during
an attach, making the stop reason a little inaccurate. So I would go
for a new reason.
--
Joel