This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MI attach stop reason


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]