[lldb-dev] Limbo

Jim Ingham jingham at apple.com
Tue Dec 18 13:51:11 PST 2012


I don't know enough about the Linux threading model to know what is really going on.  Is the thread being in this "Limbo" state the reason why the process as a whole stopped, or did it stop for some other reason, and the thread in Limbo is just along for the ride?  If the latter, then should it have a stop reason at all?  In general, in lldb, threads only have stop reasons if they were one of the threads that caused the process to stop.

You are achieving pretty much the same thing by returning false from its ShouldStop.  But note that if you happen to hit a breakpoint on another thread when the Limbo'ed thread exists, then both threads will be reported to have stopped, one with reason breakpoint and one "thread exited".  Is that what you want?

Jim

On Dec 18, 2012, at 1:24 PM, "Kaylor, Andrew" <andrew.kaylor at intel.com> wrote:

> There’s an issue on Linux where LLDB stop with “stop reason = thread exited” and displays a brief assembly dump from somewhere in libc.  This seems to happen because it is stopping in the “limbo” state.  I can make it go away by having POSIXLimboStopInfo::ShouldStop() return false instead of true.
>  
> Is there any reason I shouldn’t do that?
>  
> Thanks,
> Andy
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev





More information about the lldb-dev mailing list