This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/PATCH] New convenience variable $_exitsignal
- From: Tom Tromey <tromey at redhat dot com>
- To: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>
- Cc: Pedro Alves <palves at redhat dot com>, Sergio Durigan Junior <sergiodj at redhat dot com>, Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>, "'GDB Patches'" <gdb-patches at sourceware dot org>
- Date: Tue, 17 Sep 2013 12:59:34 -0600
- Subject: Re: [RFC/PATCH] New convenience variable $_exitsignal
- Authentication-results: sourceware.org; auth=none
- References: <m3mwqqvagk dot fsf at redhat dot com> <00db01ce6b24$0b716aa0$22543fe0$ at muller@ics-cnrs.unistra.fr> <m3zjuotykn dot fsf at redhat dot com> <m37ghqn1as dot fsf at redhat dot com> <52374823 dot 4010203 at redhat dot com> <87bo3rxpko dot fsf at fleche dot redhat dot com> <1379444008 dot 2222 dot 35 dot camel at soleil>
>>>>> "Philippe" == Philippe Waroquiers <philippe.waroquiers@skynet.be> writes:
Philippe> On Tue, 2013-09-17 at 12:36 -0600, Tom Tromey wrote:
>> Another consideration along these lines is that I have a branch in
>> progress for "catch exit" -- it's been waiting for Sergio's work on
>> these convenience variables. I think here as well $_exitsignal seems
>> like a natural fit, even though the process has not technically exited
>> at the catchpoint.
Philippe> Will there be (significant) functional differences between
Philippe> "catch exit"
Philippe> and
Philippe> "catch syscall exit exit_group" ?
Does the "catch syscall" approach work when the exit is due to a signal?
I would have thought not, but I did not test it.
"catch exit" works via PTRACE_O_TRACEEXIT.
We go back and forth about the utility of it, FWIW.
I wrote most of what I did just to learn more about infrun and the
remote protocol; then one day we found some actual use for it :-)
Tom