diff options
author | Greg Clayton <gclayton@apple.com> | 2014-12-01 22:34:03 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-12-01 22:34:03 +0000 |
commit | d90ac932d9d314e5fcf70951a2bc5f6c4bbdc26d (patch) | |
tree | 2441dafc576a7e87f9732043a780dc092d4138f4 | |
parent | 6eddf8df2a3fd73c549482fae9adf226b2dd4f22 (diff) | |
download | bcm5719-llvm-d90ac932d9d314e5fcf70951a2bc5f6c4bbdc26d.tar.gz bcm5719-llvm-d90ac932d9d314e5fcf70951a2bc5f6c4bbdc26d.zip |
Added a new regular expression to the "_regexp-break" command ("b" by default):
(lldb) b /break here/
This will set a source level regular expression breakpoint on any text between the first '/' and the last '/'. The equivalent command will be:
(lldb) breakpoint set --source-pattern-regexp 'break here'
llvm-svn: 223082
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 3580bdbfeae..895106a99ed 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -424,6 +424,7 @@ CommandInterpreter::LoadCommandDictionary () m_command_dict["watchpoint"]= CommandObjectSP (new CommandObjectMultiwordWatchpoint (*this)); const char *break_regexes[][2] = {{"^(.*[^[:space:]])[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*$", "breakpoint set --file '%1' --line %2"}, + {"^/([^/]+)/$", "breakpoint set --source-pattern-regexp '%1'"}, {"^([[:digit:]]+)[[:space:]]*$", "breakpoint set --line %1"}, {"^\\*?(0x[[:xdigit:]]+)[[:space:]]*$", "breakpoint set --address %1"}, {"^[\"']?([-+]?\\[.*\\])[\"']?[[:space:]]*$", "breakpoint set --name '%1'"}, |