GDB hangs with simple multi-threaded program on linux
Daniel Jacobowitz
dan@codesourcery.com
Fri Jul 16 15:58:00 GMT 2010
On Thu, Jul 15, 2010 at 12:44:32PM -0600, Tom Tromey wrote:
> The approach in this patch seems to be racy. Roland says we can do
> better if we enable exit tracing. I see this in linux-nat.c:
>
> /* Do not enable PTRACE_O_TRACEEXIT until GDB is more prepared to support
> read-only process state. */
>
> I wonder what that means :-)
I meant to use this for "catch exit". But once you reach
PTRACE_O_TRACEEXIT, the process is in a pretty unique state. For
instance, you can't call a function - if you do, the process will exit
as soon as you resume it!
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb
mailing list