diff options
author | Enrico Granata <egranata@apple.com> | 2013-05-16 23:17:25 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-05-16 23:17:25 +0000 |
commit | e8be51d7d7967855cc73515ad618cd688a658339 (patch) | |
tree | cac4f9c0516bc413cba9c83c7a08dd72d2c5e423 /lldb/www/python-reference.html | |
parent | f5f560caea6a5288aef93b6110421777357f0920 (diff) | |
download | bcm5719-llvm-e8be51d7d7967855cc73515ad618cd688a658339.tar.gz bcm5719-llvm-e8be51d7d7967855cc73515ad618cd688a658339.zip |
the return False in breakpoint actions should also be mentioned on the website
llvm-svn: 182060
Diffstat (limited to 'lldb/www/python-reference.html')
-rwxr-xr-x | lldb/www/python-reference.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/www/python-reference.html b/lldb/www/python-reference.html index 2a9c529f03d..460796f9fbf 100755 --- a/lldb/www/python-reference.html +++ b/lldb/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
|