summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBBreakpointLocation.i
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python/interface/SBBreakpointLocation.i')
-rw-r--r--lldb/scripts/Python/interface/SBBreakpointLocation.i23
1 files changed, 23 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBBreakpointLocation.i b/lldb/scripts/Python/interface/SBBreakpointLocation.i
index 8c9b9c78246..a3073538e67 100644
--- a/lldb/scripts/Python/interface/SBBreakpointLocation.i
+++ b/lldb/scripts/Python/interface/SBBreakpointLocation.i
@@ -70,6 +70,29 @@ public:
const char *
GetCondition ();
+ %feature("docstring", "
+ //------------------------------------------------------------------
+ /// Set the callback to the given Python function name.
+ //------------------------------------------------------------------
+ ") SetScriptCallbackFunction;
+ void
+ SetScriptCallbackFunction (const char *callback_function_name);
+
+ %feature("docstring", "
+ //------------------------------------------------------------------
+ /// Provide the body for the script function to be called when the breakpoint location is hit.
+ /// The body will be wrapped in a function, which be passed two arguments:
+ /// 'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint
+ /// 'bpno' - which is the SBBreakpointLocation to which the callback was attached.
+ ///
+ /// The error parameter is currently ignored, but will at some point hold the Python
+ /// compilation diagnostics.
+ /// Returns true if the body compiles successfully, false if not.
+ //------------------------------------------------------------------
+ ") SetScriptCallbackBody;
+ SBError
+ SetScriptCallbackBody (const char *script_body_text);
+
void
SetThreadID (lldb::tid_t sb_thread_id);
OpenPOWER on IntegriCloud