[lldb-dev] Why did the process stop?
labath at google.com
Mon Jun 29 01:23:49 PDT 2015
> 1. How do I determine that a process has entered eStateStopped because it
> received a signal?
> 2. How do I determine which signal was received?
stop reasons are not a property of the whole process, but of a
particular thread (after all, you can have multiple threads stopping
at the same time for different (or same) reasons). So, to get the stop
reason, you first need to enumerate all the threads of the process
(SBProcess::GetThreadAtIndex) and then ask each thread for it's stop
reason (SBThread::GetStopReason). If the stop reason is
eStopReasonSignaled, then SBThread::GetStopReasonDataAtIndex(0) will
give you the signal number.
hope that helps,
More information about the lldb-dev