[Lldb-commits] [lldb] r157202 - /lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Sean Callanan scallanan at apple.com
Mon May 21 11:25:19 PDT 2012


Author: spyffe
Date: Mon May 21 13:25:19 2012
New Revision: 157202

URL: http://llvm.org/viewvc/llvm-project?rev=157202&view=rev
Log:
Added an "rb" alias that sets breakpoints by
regular expression.

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=157202&r1=157201&r2=157202&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Mon May 21 13:25:19 2012
@@ -256,6 +256,15 @@
     {
         AddAlias ("add-dsym", cmd_obj_sp);
     }
+    
+    cmd_obj_sp = GetCommandSPExact ("breakpoint set", false);
+    if (cmd_obj_sp)
+    {
+        alias_arguments_vector_sp.reset (new OptionArgVector);
+        ProcessAliasOptionsArgs (cmd_obj_sp, "--func-regex %1", alias_arguments_vector_sp);
+        AddAlias ("rb", cmd_obj_sp);
+        AddOrReplaceAliasOptions("rb", alias_arguments_vector_sp);
+    }
 }
 
 const char *





More information about the lldb-commits mailing list