Re: [PATCH 0/0][REPOST] Exec events in gdbserver on Linux

Tom Tromey
2014-05-21T15:25:28Z

>>>>> "Don" == Don Breazeal <donb@codesourcery.com> writes:

Don> There are a couple of significant aspects to this patch. First, it uses
Don> the ptrace extension PTRACE_EVENT_EXIT to detect thread exit, in particular
Don> the exit of a thread group leader when a non-leader calls exec. Use of
Don> this event was necessary due to a race condition in the two-thread case.
Don> It is only used internally; exit events detected this way are not exposed
Don> to the user, and exit processing was changed as little as possible.

Ok, sorry, I missed this note earlier.

I still don't understand why this is needed in gdbserver but not in gdb,
though.

And I'm still curious about PTRACE_EVENT_EXIT notifying process rather
than thread exit.

Tom