From 0161b49cbadd54431b4acefa8dae954ebef12ec8 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Sat, 9 Feb 2013 01:29:05 +0000 Subject: 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. llvm-svn: 174793 --- lldb/source/API/SBProcess.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lldb/source/API/SBProcess.cpp') diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp index dfd799c2eb26..dde41aafef61 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) { -- cgit v1.2.3