[Lldb-commits] [lldb] r113607 - /lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp
Johnny Chen
johnny.chen at apple.com
Fri Sep 10 12:34:12 PDT 2010
Author: johnny
Date: Fri Sep 10 14:34:12 2010
New Revision: 113607
URL: http://llvm.org/viewvc/llvm-project?rev=113607&view=rev
Log:
Updated help text for "breakpoint command add" to reflect r113596 changeset.
Modified:
lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp
Modified: lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp?rev=113607&r1=113606&r2=113607&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp Fri Sep 10 14:34:12 2010
@@ -162,6 +162,22 @@
> print \"Hit this breakpoint!\" \n\
> DONE \n\
\n\
+As a convenience, this also works for a short Python one-liner: \n\
+(lldb) breakpoint command add -p 1 \"import time; print time.asctime()\" \n\
+(lldb) run \n\
+Launching '.../a.out' (x86_64) \n\
+(lldb) Fri Sep 10 12:17:45 2010 \n\
+Process 21778 Stopped \n\
+* thread #1: tid = 0x2e03, 0x0000000100000de8 a.out`c + 7 at main.c:39, stop reason = breakpoint 1.1, queue = com.apple.main-thread \n\
+ 36 \n\
+ 37 int c(int val)\n\
+ 38 {\n\
+ 39 -> return val + 3;\n\
+ 40 }\n\
+ 41 \n\
+ 42 int main (int argc, char const *argv[])\n\
+(lldb) \n\
+ \n\
Example multiple line Python breakpoint command, using function definition: \n\
\n\
(lldb) breakpoint command add -p 1 \n\
More information about the lldb-commits
mailing list