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

Jim Ingham jingham at apple.com
Wed Oct 10 09:51:31 PDT 2012

Author: jingham
Date: Wed Oct 10 11:51:31 2012
New Revision: 165630

URL: http://llvm.org/viewvc/llvm-project?rev=165630&view=rev
Don't make regexp commands as regular commands - they are "short cuts" and users should be able to override them with "unalias" but you can't unalias normal commands. 


Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=165630&r1=165629&r2=165630&view=diff
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Wed Oct 10 11:51:31 2012
@@ -243,6 +243,10 @@
     if (cmd_obj_sp)
         AddAlias ("undisplay", cmd_obj_sp);
+    cmd_obj_sp = GetCommandSPExact ("_regexp-bt", false);
+    if (cmd_obj_sp)
+        AddAlias ("bt", cmd_obj_sp);
     cmd_obj_sp = GetCommandSPExact ("target create", false);
     if (cmd_obj_sp)
         AddAlias ("file", cmd_obj_sp);
@@ -542,7 +546,7 @@
     bt_regex_cmd_ap(new CommandObjectRegexCommand (*this,
-                                                     "bt",
+                                                     "_regexp-bt",
                                                      "Show a backtrace.  An optional argument is accepted; if that argument is a number, it specifies the number of frames to display.  If that argument is 'all', full backtraces of all threads are displayed.",
                                                      "bt [<digit>|all]", 2));
     if (bt_regex_cmd_ap.get())

More information about the lldb-commits mailing list