This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB hangs with simple multi-threaded program on linux
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Thiago Jung Bauermann <bauerman at br dot ibm dot com>, gdb at sourceware dot org
- Date: Fri, 16 Jul 2010 11:57:58 -0400
- Subject: Re: GDB hangs with simple multi-threaded program on linux
- References: <1279208729.14577.21.camel@hactar> <m3bpa8lh4f.fsf@fleche.redhat.com>
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