summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-05-16 23:09:09 +0000
committerEnrico Granata <egranata@apple.com>2013-05-16 23:09:09 +0000
commitf5f560caea6a5288aef93b6110421777357f0920 (patch)
treebc644b408020cd9cd1731fbc0c82ba1fb93f3afe /lldb/source/Commands/CommandObjectBreakpointCommand.cpp
parentc5e2eca042b48498ade564e02549360a12a98036 (diff)
downloadbcm5719-llvm-f5f560caea6a5288aef93b6110421777357f0920.tar.gz
bcm5719-llvm-f5f560caea6a5288aef93b6110421777357f0920.zip
Note in the documentation about the fact that Python callbacks can return a value and if that value is False, LLDB won’t stop at the breakpoint
llvm-svn: 182059
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
index 3dbb6e052d5..c4504a4c651 100644
--- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -167,6 +167,12 @@ initialized:\n\
(lldb)\n\
\n\
\n\
+Your Python code, however organized, can optionally return a value.\n\
+If the returned value is False, that tells LLDB not to stop at the breakpoint\n\
+to which the code is associated. Returning anything other than False, or even\n\
+returning None, or even omitting a return statement entirely, will cause\n\
+LLDB to stop.\n\
+\n\
Final Note: If you get a warning that no breakpoint command was generated, but\n\
you did not get any syntax errors, you probably forgot to add a call to your\n\
functions.\n\
OpenPOWER on IntegriCloud