summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-02-09 01:29:05 +0000
committerJim Ingham <jingham@apple.com>2013-02-09 01:29:05 +0000
commit0161b49cbadd54431b4acefa8dae954ebef12ec8 (patch)
tree2f6c58512e07b7d65af0a6de0a0fd9df6e1d6013 /lldb/source/API
parent1aa79e9f637d9f5fb514095e8b29108bd15c261f (diff)
downloadbcm5719-llvm-0161b49cbadd54431b4acefa8dae954ebef12ec8.tar.gz
bcm5719-llvm-0161b49cbadd54431b4acefa8dae954ebef12ec8.zip
Reworked the way Process::RunThreadPlan and the ThreadPlanCallFunction interoperate to fix problems where
hitting auto-continue signals while running a thread plan would cause us to lose control of the debug session. <rdar://problem/12993641> llvm-svn: 174793
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBProcess.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp
index dfd799c2eb2..dde41aafef6 100644
--- a/lldb/source/API/SBProcess.cpp
+++ b/lldb/source/API/SBProcess.cpp
@@ -909,6 +909,18 @@ SBProcess::GetRestartedFromEvent (const SBEvent &event)
return Process::ProcessEventData::GetRestartedFromEvent (event.get());
}
+size_t
+SBProcess::GetNumRestartedReasonsFromEvent (const lldb::SBEvent &event)
+{
+ return Process::ProcessEventData::GetNumRestartedReasons(event.get());
+}
+
+const char *
+SBProcess::GetRestartedReasonAtIndexFromEvent (const lldb::SBEvent &event, size_t idx)
+{
+ return Process::ProcessEventData::GetRestartedReasonAtIndex(event.get(), idx);
+}
+
SBProcess
SBProcess::GetProcessFromEvent (const SBEvent &event)
{
OpenPOWER on IntegriCloud