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:
Jim Ingham
2013-01-08 23:22:42 +00:00
parent b68f7b2a77
commit bf2956a2f8
6 changed files with 62 additions and 2 deletions

View File

@@ -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 ()
{