Skip to content

Commit

Permalink
Revert "[lldb] Redefine p alias to dwim-print command"
Browse files Browse the repository at this point in the history
This reverts commit a00801d.

Broke TestVSCode_completions.py
  • Loading branch information
kastiglione committed Mar 6, 2023
1 parent f7e91f2 commit 7975e3b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lldb/source/Interpreter/CommandInterpreter.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 7975e3b

Please sign in to comment.