[Lldb-commits] [lldb] 7975e3b - Revert "[lldb] Redefine p alias to dwim-print command"

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 6 15:05:25 PST 2023


Author: Dave Lee
Date: 2023-03-06T15:05:15-08:00
New Revision: 7975e3b1255d8506b7a4c9a33ab91c39291996ba

URL: https://github.com/llvm/llvm-project/commit/7975e3b1255d8506b7a4c9a33ab91c39291996ba
DIFF: https://github.com/llvm/llvm-project/commit/7975e3b1255d8506b7a4c9a33ab91c39291996ba.diff

LOG: Revert "[lldb] Redefine p alias to dwim-print command"

This reverts commit a00801d94b02eaebd1385b03fb9e549c07cc8585.

Broke TestVSCode_completions.py

Added: 
    

Modified: 
    lldb/source/Interpreter/CommandInterpreter.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index c03806d94210..1437ca464e76 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -413,21 +413,17 @@ void CommandInterpreter::Initialize() {
 
   alias_arguments_vector_sp = std::make_shared<OptionArgVector>();
 
-  cmd_obj_sp = GetCommandSPExact("dwim-print");
+  cmd_obj_sp = GetCommandSPExact("expression");
   if (cmd_obj_sp) {
     AddAlias("p", cmd_obj_sp, "--")->SetHelpLong("");
     AddAlias("print", cmd_obj_sp, "--")->SetHelpLong("");
+    AddAlias("call", cmd_obj_sp, "--")->SetHelpLong("");
     if (auto *po = AddAlias("po", cmd_obj_sp, "-O --")) {
       po->SetHelp("Evaluate an expression on the current thread.  Displays any "
                   "returned value with formatting "
                   "controlled by the type's author.");
       po->SetHelpLong("");
     }
-  }
-
-  cmd_obj_sp = GetCommandSPExact("expression");
-  if (cmd_obj_sp) {
-    AddAlias("call", cmd_obj_sp, "--")->SetHelpLong("");
     CommandAlias *parray_alias =
         AddAlias("parray", cmd_obj_sp, "--element-count %1 --");
     if (parray_alias) {


        


More information about the lldb-commits mailing list