diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-09-10 19:34:12 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-09-10 19:34:12 +0000 |
commit | 3495f25aa709a595ce499e8c8f0c900b4b5762ec (patch) | |
tree | f934d06ff9fa33d817ea177a0800273bd371f8a8 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp | |
parent | a9c9aaa839ffae681954dfb62d4504d3083dfb5a (diff) | |
download | bcm5719-llvm-3495f25aa709a595ce499e8c8f0c900b4b5762ec.tar.gz bcm5719-llvm-3495f25aa709a595ce499e8c8f0c900b4b5762ec.zip |
Updated help text for "breakpoint command add" to reflect r113596 changeset.
llvm-svn: 113607
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpointCommand.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp index 396933a0381..69cd42bd86c 100644 --- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp +++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp @@ -162,6 +162,22 @@ Enter your Python command(s). Type 'DONE' to end. \n\ > 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\ |