From 6fc5c7f1f5f90b429975b9fdb4b35bd0ebc277d0 Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Fri, 26 Feb 2016 03:36:27 +0000 Subject: [PATCH] Clear alias argument vector for 'p' alias. Summary: This fixes the 'p' command which should be aliased to 'expresion --'. Reviewers: jingham Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D17634 llvm-svn: 261969 --- lldb/source/Interpreter/CommandInterpreter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 20fe467..5de6177 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -337,6 +337,8 @@ CommandInterpreter::Initialize () AddAlias ("image", cmd_obj_sp); + alias_arguments_vector_sp.reset(new OptionArgVector); + cmd_obj_sp = GetCommandSPExact ("expression", false); if (cmd_obj_sp) { -- 2.7.4