diff options
author | Greg Clayton <gclayton@apple.com> | 2015-03-07 00:01:46 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-03-07 00:01:46 +0000 |
commit | 910db5c5203fcb594b8b72c79f998aeacb7a95d4 (patch) | |
tree | a1bd3160be04fdd2ba038ac09c9f1eebb11b0b91 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | b6207883e36a2dd2b4a527ad8df67f8058b7b632 (diff) | |
download | bcm5719-llvm-910db5c5203fcb594b8b72c79f998aeacb7a95d4.tar.gz bcm5719-llvm-910db5c5203fcb594b8b72c79f998aeacb7a95d4.zip |
Help for _regexp-break wasn't very clear. Added more detailed explanations of all things that can be typed by the _regexp-break command.
<rdar://problem/12281058>
llvm-svn: 231537
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index c4849d03151..dccf1f8e240 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -440,8 +440,14 @@ CommandInterpreter::LoadCommandDictionary () std::unique_ptr<CommandObjectRegexCommand> break_regex_cmd_ap(new CommandObjectRegexCommand (*this, "_regexp-break", - "Set a breakpoint using a regular expression to specify the location, where <linenum> is in decimal and <address> is in hex.", - "_regexp-break [<filename>:<linenum>]\n_regexp-break [<linenum>]\n_regexp-break [<address>]\n_regexp-break <...>", + "Set a breakpoint using a regular expression to specify the location, where <linenum> is in decimal and <address> is in hex.\n", + "\n_regexp-break <filename>:<linenum> # _regexp-break main.c:12 // Break on line 12 of main.c\n" + "_regexp-break <linenum> # _regexp-break 12 // Break on line 12 of current file\n" + "_regexp-break <address> # _regexp-break 0x1234000 // Break on address 0x1234000\n" + "_regexp-break <name> # _regexp-break main // Break in 'main' after the prologue\n" + "_regexp-break &<name> # _regexp-break &main // Break on the first instruction in 'main'\n" + "_regexp-break <module>`<name> # _regexp-break libc.so`malloc // Break in 'malloc' only in the 'libc.so' shared library\n" + "_regexp-break /<source-regex>/ # _regexp-break /break here/ // Break on all lines that match the regular expression 'break here' in the current file.\n", 2, CommandCompletions::eSymbolCompletion | CommandCompletions::eSourceFileCompletion, |