aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-05-16 23:17:25 +0000
committerEnrico Granata <egranata@apple.com>2013-05-16 23:17:25 +0000
commit5c7c78152c0d3a09fc87b31759c3fbb8c518761c (patch)
tree28504223a924e9f774eadb7eb19c1c9e40d5a00c /www
parent114b81f9b3e48d40e935982a6622ac70e1f2bf82 (diff)
downloadlldb-5c7c78152c0d3a09fc87b31759c3fbb8c518761c.tar.gz
the return False in breakpoint actions should also be mentioned on the website
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'www')
-rwxr-xr-xwww/python-reference.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/python-reference.html b/www/python-reference.html
index 2a9c529f0..460796f9f 100755
--- a/www/python-reference.html
+++ b/www/python-reference.html
@@ -271,6 +271,10 @@ frame #0: 0x0000000100000bb6 a.out main + 54 at main.c:16
</td>
</tr>
</table>
+ <p>Optionally, a Python breakpoint command can return a value. Returning False tells LLDB that you do not want to stop at the breakpoint.
+ Any other return value (including None or leaving out the return statement altogether) is akin to telling LLDB to actually stop at the breakpoint.
+ This can be useful in situations where a breakpoint only needs to stop the process when certain conditions are met, and you do not want to inspect the
+ program state manually at every stop and then continue.
<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
are first executed during one run of your program. This is a simple method to gather an order file which