diff options
author | Greg Clayton <gclayton@apple.com> | 2012-10-26 17:53:21 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-10-26 17:53:21 +0000 |
commit | 13b1213de3bd977f65bcdf47ab0f6e4fb14ba056 (patch) | |
tree | 382d8dc1e300cf6709eeddb202800684221e59c3 /lldb/www/python-reference.html | |
parent | 77360858947233335d88f2fe9e698f3c06eb6d58 (diff) | |
download | bcm5719-llvm-13b1213de3bd977f65bcdf47ab0f6e4fb14ba056.tar.gz bcm5719-llvm-13b1213de3bd977f65bcdf47ab0f6e4fb14ba056.zip |
Updated the "breakpoint command add" documentation and fixed the web site docs for the signature of the python breakpoint callback functions.
llvm-svn: 166789
Diffstat (limited to 'lldb/www/python-reference.html')
-rwxr-xr-x | lldb/www/python-reference.html | 15 |
1 files changed, 13 insertions, 2 deletions
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.</p>
<p>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:</p>
+ body of a function which takes three arguments:</p>
<p>
-<code><pre><tt>def breakpoint_function_wrapper(<b>frame</b>, <b>bp_loc</b>):
+<code><pre><tt>def breakpoint_function_wrapper(<b>frame</b>, <b>bp_loc</b>, <b>dict</b>):
<font color=green># Your code goes here</font>
</tt></pre></code>
<p><table class="stats" width="620" cellspacing="0">
@@ -251,6 +251,17 @@ frame #0: 0x0000000100000bb6 a.out main + 54 at main.c:16 are represented by <b>lldb.SBBreakpointLocation</b> objects.
</td>
</tr>
+ <tr>
+ <td class="content">
+ <b>dict</b>
+ </td>
+ <td class="content">
+ <b>dict</b>
+ </td>
+ <td class="content">
+ The python session dictionary as a standard python dictionary object.
+ </td>
+ </tr>
</table>
<p>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
|