From 13b1213de3bd977f65bcdf47ab0f6e4fb14ba056 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 26 Oct 2012 17:53:21 +0000 Subject: Updated the "breakpoint command add" documentation and fixed the web site docs for the signature of the python breakpoint callback functions. llvm-svn: 166789 --- lldb/www/python-reference.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'lldb/www/python-reference.html') diff --git a/lldb/www/python-reference.html b/lldb/www/python-reference.html index e1d7f9da690..007ac7eb565 100755 --- a/lldb/www/python-reference.html +++ b/lldb/www/python-reference.html @@ -213,9 +213,9 @@ frame #0: 0x0000000100000bb6 a.out main + 54 at main.c:16 scripts to breakpoints provides a way to create complex breakpoint conditions and also allows for smart logging and data gathering.

When your process hits a breakpoint to which you have attached some python code, the code is executed as the - body of a function which takes two arguments:

+ body of a function which takes three arguments:

-

def breakpoint_function_wrapper(frame, bp_loc):
+
def breakpoint_function_wrapper(frame, bp_loc, dict):
   # Your code goes here
 

@@ -251,6 +251,17 @@ frame #0: 0x0000000100000bb6 a.out main + 54 at main.c:16 are represented by lldb.SBBreakpointLocation objects. + + + + +
+ dict + + dict + + The python session dictionary as a standard python dictionary object. +

An example will show how simple it is to write some python code and attach it to a breakpoint. The following example will allow you to track the order in which the functions in a given shared library -- cgit v1.2.3