summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2018-10-10 00:51:30 +0000
committerJim Ingham <jingham@apple.com>2018-10-10 00:51:30 +0000
commit285ae0c07b20b25725963e11f65fbb53b5110edc (patch)
treed452e5108b8a8a7f995b0d0b727b4bb33a056edc /lldb/source/Interpreter/CommandInterpreter.cpp
parentabbc51e5c34df90872c510b3221e817e714fccda (diff)
downloadbcm5719-llvm-285ae0c07b20b25725963e11f65fbb53b5110edc.tar.gz
bcm5719-llvm-285ae0c07b20b25725963e11f65fbb53b5110edc.zip
Add "var" and "vo" aliases for "frame variable" and "frame variable -O".
Differential Revision: https://reviews.llvm.org/D53010 llvm-svn: 344102
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index ec812d61ea2..d5dd32b52b8 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -423,6 +423,13 @@ void CommandInterpreter::Initialize() {
if (cmd_obj_sp) {
AddAlias("rbreak", cmd_obj_sp, "--func-regex %1");
}
+
+ cmd_obj_sp = GetCommandSPExact("frame variable", false);
+ if (cmd_obj_sp) {
+ AddAlias("var", cmd_obj_sp);
+ AddAlias("vo", cmd_obj_sp, "--object-description");
+ }
+
}
void CommandInterpreter::Clear() {
OpenPOWER on IntegriCloud