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/scripts/Python/interface/SBExpressionOptions.i | 4 ++-- lldb/scripts/Python/interface/SBProcess.i | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBExpressionOptions.i b/lldb/scripts/Python/interface/SBExpressionOptions.i index 87e3ffe2fef..1f11862b362 100644 --- a/lldb/scripts/Python/interface/SBExpressionOptions.i +++ b/lldb/scripts/Python/interface/SBExpressionOptions.i @@ -39,7 +39,7 @@ public: %feature("docstring", "Sets whether to unwind the expression stack on error.") SetUnwindOnError; void - SetUnwindOnError (bool unwind = false); + SetUnwindOnError (bool unwind = true); bool GetIgnoreBreakpoints () const; @@ -47,7 +47,7 @@ public: %feature("docstring", "Sets whether to ignore breakpoint hits while running expressions.") SetUnwindOnError; void - SetIgnoreBreakpoints (bool ignore = false); + SetIgnoreBreakpoints (bool ignore = true); lldb::DynamicValueType GetFetchDynamicValue () const; diff --git a/lldb/scripts/Python/interface/SBProcess.i b/lldb/scripts/Python/interface/SBProcess.i index 9303e9ff10f..6f22d9ad1dc 100644 --- a/lldb/scripts/Python/interface/SBProcess.i +++ b/lldb/scripts/Python/interface/SBProcess.i @@ -328,6 +328,12 @@ public: static bool GetRestartedFromEvent (const lldb::SBEvent &event); + static size_t + GetNumRestartedReasonsFromEvent (const lldb::SBEvent &event); + + static const char * + GetRestartedReasonAtIndexFromEvent (const lldb::SBEvent &event, size_t idx); + static lldb::SBProcess GetProcessFromEvent (const lldb::SBEvent &event); -- cgit v1.2.3