[Lldb-commits] [lldb] r215668 - fix the _regexp-break command to allow quotes around the name:

Greg Clayton gclayton at apple.com
Thu Aug 14 10:58:33 PDT 2014


Author: gclayton
Date: Thu Aug 14 12:58:33 2014
New Revision: 215668

URL: http://llvm.org/viewvc/llvm-project?rev=215668&view=rev
Log:
fix the _regexp-break command to allow quotes around the name:

(lldb) b "Foo::Bar::Baz"

<rdar://problem/11782098>


Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=215668&r1=215667&r2=215668&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Thu Aug 14 12:58:33 2014
@@ -417,7 +417,7 @@ CommandInterpreter::LoadCommandDictionar
                                       {"^(-.*)$", "breakpoint set %1"},
                                       {"^(.*[^[:space:]])`(.*[^[:space:]])[[:space:]]*$", "breakpoint set --name '%2' --shlib '%1'"},
                                       {"^\\&(.*[^[:space:]])[[:space:]]*$", "breakpoint set --name '%1' --skip-prologue=0"},
-                                      {"^(.*[^[:space:]])[[:space:]]*$", "breakpoint set --name '%1'"}};
+                                      {"^[\"']?(.*[^[:space:]\"'])[\"']?[[:space:]]*$", "breakpoint set --name '%1'"}};
     
     size_t num_regexes = llvm::array_lengthof(break_regexes);
         





More information about the lldb-commits mailing list