diff options
author | Jim Ingham <jingham@apple.com> | 2013-01-15 02:47:48 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2013-01-15 02:47:48 +0000 |
commit | 184e981111d74fe650b7ea4506adc9bc356273ee (patch) | |
tree | 63abd3ef966759715411399c4d4be97325611df5 /lldb/scripts/Python/interface | |
parent | ed1950719b38c2dde6d3c1efe1f216a7d90a04b4 (diff) | |
download | bcm5719-llvm-184e981111d74fe650b7ea4506adc9bc356273ee.tar.gz bcm5719-llvm-184e981111d74fe650b7ea4506adc9bc356273ee.zip |
Separated the "expr --unwind-on-error" behavior into two parts, actual errors (i.e. crashes) which continue to be
controlled by the --unwind-on-error flag, and --ignore-breakpoint which separately controls behavior when a called
function hits a breakpoint. For breakpoints, we don't unwind, we either stop, or ignore the breakpoint, which makes
more sense.
Also make both these behaviors globally settable through "settings set".
Also handle the case where a breakpoint command calls code that ends up re-hitting the breakpoint. We were recursing
and crashing. Now we just stop without calling the second command.
<rdar://problem/12986644>
<rdar://problem/9119325>
llvm-svn: 172503
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBExpressionOptions.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBExpressionOptions.i b/lldb/scripts/Python/interface/SBExpressionOptions.i index 319040281c1..87e3ffe2fef 100644 --- a/lldb/scripts/Python/interface/SBExpressionOptions.i +++ b/lldb/scripts/Python/interface/SBExpressionOptions.i @@ -41,6 +41,14 @@ public: void SetUnwindOnError (bool unwind = false); + bool + GetIgnoreBreakpoints () const; + + %feature("docstring", "Sets whether to ignore breakpoint hits while running expressions.") SetUnwindOnError; + + void + SetIgnoreBreakpoints (bool ignore = false); + lldb::DynamicValueType GetFetchDynamicValue () const; |