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
This commit is contained in:
Greg Clayton 2015-03-07 00:01:46 +00:00
parent b6207883e3
commit 910db5c520
1 changed files with 8 additions and 2 deletions

View File

@ -440,8 +440,14 @@ CommandInterpreter::LoadCommandDictionary ()
std::unique_ptr<CommandObjectRegexCommand> std::unique_ptr<CommandObjectRegexCommand>
break_regex_cmd_ap(new CommandObjectRegexCommand (*this, break_regex_cmd_ap(new CommandObjectRegexCommand (*this,
"_regexp-break", "_regexp-break",
"Set a breakpoint using a regular expression to specify the location, where <linenum> is in decimal and <address> is in hex.", "Set a breakpoint using a regular expression to specify the location, where <linenum> is in decimal and <address> is in hex.\n",
"_regexp-break [<filename>:<linenum>]\n_regexp-break [<linenum>]\n_regexp-break [<address>]\n_regexp-break <...>", "\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, 2,
CommandCompletions::eSymbolCompletion | CommandCompletions::eSymbolCompletion |
CommandCompletions::eSourceFileCompletion, CommandCompletions::eSourceFileCompletion,