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

Jason Molenda jmolenda at apple.com
Mon Oct 24 19:11:20 PDT 2011


Author: jmolenda
Date: Mon Oct 24 21:11:20 2011
New Revision: 142902

URL: http://llvm.org/viewvc/llvm-project?rev=142902&view=rev
Log:
Prefix display/undisplay regexp command alises with "_regexp" as per the
style of the other regexp command aliases.

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=142902&r1=142901&r2=142902&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Mon Oct 24 21:11:20 2011
@@ -174,7 +174,7 @@
     if (cmd_obj_sp)
         AddAlias ("down", cmd_obj_sp);
 
-    cmd_obj_sp = GetCommandSPExact ("_display", false);
+    cmd_obj_sp = GetCommandSPExact ("_regexp-display", false);
     if (cmd_obj_sp)
         AddAlias ("display", cmd_obj_sp);
         
@@ -188,7 +188,7 @@
 
 
 
-    cmd_obj_sp = GetCommandSPExact ("_undisplay", false);
+    cmd_obj_sp = GetCommandSPExact ("_regexp-undisplay", false);
     if (cmd_obj_sp)
         AddAlias ("undisplay", cmd_obj_sp);
 
@@ -348,9 +348,9 @@
 
     std::auto_ptr<CommandObjectRegexCommand>
     display_regex_cmd_ap(new CommandObjectRegexCommand (*this,
-                                                   "_display",
+                                                   "_regexp-display",
                                                    "Add an expression evaluation stop-hook.",
-                                                   "_display expression", 2));
+                                                   "_regexp-display expression", 2));
     if (display_regex_cmd_ap.get())
     {
         if (display_regex_cmd_ap->AddRegexCommand("^(.+)$", "target stop-hook add -o \"expr -- %1\""))
@@ -362,9 +362,9 @@
 
     std::auto_ptr<CommandObjectRegexCommand>
     undisplay_regex_cmd_ap(new CommandObjectRegexCommand (*this,
-                                                   "_undisplay",
+                                                   "_regexp-undisplay",
                                                    "Remove an expression evaluation stop-hook.",
-                                                   "_undisplay stop-hook-number", 2));
+                                                   "_regexp-undisplay stop-hook-number", 2));
     if (undisplay_regex_cmd_ap.get())
     {
         if (undisplay_regex_cmd_ap->AddRegexCommand("^([0-9]+)$", "target stop-hook delete %1"))





More information about the lldb-commits mailing list