xref: /llvm-project/lldb/bindings/interface/SBBreakpointLocationDocstrings.i (revision 662548c82683bd8657a3179afee693c4965a3dfd)
1*662548c8SAlex Langford %feature("docstring",
2*662548c8SAlex Langford "Represents one unique instance (by address) of a logical breakpoint.
3*662548c8SAlex Langford 
4*662548c8SAlex Langford A breakpoint location is defined by the breakpoint that produces it,
5*662548c8SAlex Langford and the address that resulted in this particular instantiation.
6*662548c8SAlex Langford Each breakpoint location has its settable options.
7*662548c8SAlex Langford 
8*662548c8SAlex Langford :py:class:`SBBreakpoint` contains SBBreakpointLocation(s). See docstring of SBBreakpoint
9*662548c8SAlex Langford for retrieval of an SBBreakpointLocation from an SBBreakpoint."
10*662548c8SAlex Langford ) lldb::SBBreakpointLocation;
11*662548c8SAlex Langford 
12*662548c8SAlex Langford %feature("docstring", "
13*662548c8SAlex Langford     The breakpoint location stops only if the condition expression evaluates
14*662548c8SAlex Langford     to true.") lldb::SBBreakpointLocation::SetCondition;
15*662548c8SAlex Langford 
16*662548c8SAlex Langford %feature("docstring", "
17*662548c8SAlex Langford     Get the condition expression for the breakpoint location."
18*662548c8SAlex Langford ) lldb::SBBreakpointLocation::GetCondition;
19*662548c8SAlex Langford 
20*662548c8SAlex Langford %feature("docstring", "
21*662548c8SAlex Langford     Set the callback to the given Python function name.
22*662548c8SAlex Langford     The function takes three arguments (frame, bp_loc, internal_dict)."
23*662548c8SAlex Langford ) lldb::SBBreakpointLocation::SetScriptCallbackFunction;
24*662548c8SAlex Langford 
25*662548c8SAlex Langford %feature("docstring", "
26*662548c8SAlex Langford     Set the name of the script function to be called when the breakpoint is hit.
27*662548c8SAlex Langford     To use this variant, the function should take (frame, bp_loc, extra_args, internal_dict) and
28*662548c8SAlex Langford     when the breakpoint is hit the extra_args will be passed to the callback function."
29*662548c8SAlex Langford ) lldb::SBBreakpointLocation::SetScriptCallbackFunction;
30*662548c8SAlex Langford 
31*662548c8SAlex Langford %feature("docstring", "
32*662548c8SAlex Langford     Provide the body for the script function to be called when the breakpoint location is hit.
33*662548c8SAlex Langford     The body will be wrapped in a function, which be passed two arguments:
34*662548c8SAlex Langford     'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint
35*662548c8SAlex Langford     'bpno'  - which is the SBBreakpointLocation to which the callback was attached.
36*662548c8SAlex Langford 
37*662548c8SAlex Langford     The error parameter is currently ignored, but will at some point hold the Python
38*662548c8SAlex Langford     compilation diagnostics.
39*662548c8SAlex Langford     Returns true if the body compiles successfully, false if not."
40*662548c8SAlex Langford ) lldb::SBBreakpointLocation::SetScriptCallbackBody;
41