summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2017-08-03 18:13:24 +0000
committerJim Ingham <jingham@apple.com>2017-08-03 18:13:24 +0000
commitf08f5c99262ff9eaa08956334accbb2614b0f7a2 (patch)
tree7627308ccb3fc7ce52a6ea0ea45c0d948fcd66af /lldb/scripts
parentf0cadcd9f385d36dc751cdb32476b32ec43306b5 (diff)
downloadbcm5719-llvm-f08f5c99262ff9eaa08956334accbb2614b0f7a2.tar.gz
bcm5719-llvm-f08f5c99262ff9eaa08956334accbb2614b0f7a2.zip
Add an auto-continue flag to breakpoints & locations.
You can get a breakpoint to auto-continue by adding "continue" as a command, but that has the disadvantage that if you hit two breakpoints simultaneously, the continue will force the process to continue, and maybe even forstalling the commands on the other. The auto-continue flag means the breakpoints can negotiate about whether to stop. Writing tests, I wanted to supply some commands when I made the breakpoints, so I also added that ability. llvm-svn: 309969
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/interface/SBBreakpoint.i4
-rw-r--r--lldb/scripts/interface/SBBreakpointLocation.i4
2 files changed, 8 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBBreakpoint.i b/lldb/scripts/interface/SBBreakpoint.i
index e3b1eea0630..76ddd7259e9 100644
--- a/lldb/scripts/interface/SBBreakpoint.i
+++ b/lldb/scripts/interface/SBBreakpoint.i
@@ -153,6 +153,10 @@ public:
const char *
GetCondition ();
+ void SetAutoContinue(bool auto_continue);
+
+ bool GetAutoContinue();
+
void
SetThreadID (lldb::tid_t sb_thread_id);
diff --git a/lldb/scripts/interface/SBBreakpointLocation.i b/lldb/scripts/interface/SBBreakpointLocation.i
index 5609c1f84f8..7a9a15db8ff 100644
--- a/lldb/scripts/interface/SBBreakpointLocation.i
+++ b/lldb/scripts/interface/SBBreakpointLocation.i
@@ -73,6 +73,10 @@ public:
const char *
GetCondition ();
+ bool GetAutoContinue();
+
+ void SetAutoContinue(bool auto_continue);
+
%feature("docstring", "
//------------------------------------------------------------------
/// Set the callback to the given Python function name.
OpenPOWER on IntegriCloud