mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 04:17:17 +08:00
Add an SBProcess API to get the current StopID, either considering or ignoring stops caused by expression
evaluation. <rdar://problem/12968562> llvm-svn: 171914
This commit is contained in:
@@ -509,6 +509,21 @@ SBProcess::GetThreadAtIndex (size_t index)
|
||||
return sb_thread;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SBProcess::GetStopID(bool include_expression_stops)
|
||||
{
|
||||
ProcessSP process_sp(GetSP());
|
||||
if (process_sp)
|
||||
{
|
||||
Mutex::Locker api_locker (process_sp->GetTarget().GetAPIMutex());
|
||||
if (include_expression_stops)
|
||||
return process_sp->GetStopID();
|
||||
else
|
||||
return process_sp->GetLastNaturalStopID();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
StateType
|
||||
SBProcess::GetState ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user