[RFC/PATCH] New convenience variable $_exitsignal

Sergio Durigan Junior sergiodj@redhat.com
Tue Sep 17 18:59:00 GMT 2013


On Tuesday, September 17 2013, Philippe Waroquiers wrote:

> 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.
> Will there be (significant) functional differences between
>     "catch exit"
> and
>     "catch syscall exit exit_group" ?

I think this is more like "catch fork" and "catch syscall fork clone".
ptrace already offers PTRACE_O_TRACEEXIT so we could be using that even
when "catch syscall" is not fully functional on the target (i.e.,
there's no XML file to translate syscalls names to numbers).  But Tom
may correct me here.

-- 
Sergio



More information about the Gdb-patches mailing list