This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB hangs with simple multi-threaded program on linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]