summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-05-03 20:37:09 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-05-03 20:37:09 +0000
commite5f7d601ee80178e20f714a4706222a4d3c82264 (patch)
tree7a2542a55bcdbd3f2ab884b623c5eb0402c86d98 /lldb/source/Interpreter
parentc1e2c5340be7a99989c8b94f023a2bc7404cf3b9 (diff)
downloadbcm5719-llvm-e5f7d601ee80178e20f714a4706222a4d3c82264.tar.gz
bcm5719-llvm-e5f7d601ee80178e20f714a4706222a4d3c82264.zip
[Alias] Add 're' alias for register
This patch makes `re` an alias for `register`. Currently `re<TAB>` gives you the choice between `register` and `reproducer`. Given that you use `register` a lot more often, it should win for the common substring. Differential revision: https://reviews.llvm.org/D61469 llvm-svn: 359927
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index c8dac275e34..10a290be54c 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -429,6 +429,11 @@ void CommandInterpreter::Initialize() {
AddAlias("var", cmd_obj_sp);
AddAlias("vo", cmd_obj_sp, "--object-description");
}
+
+ cmd_obj_sp = GetCommandSPExact("register", false);
+ if (cmd_obj_sp) {
+ AddAlias("re", cmd_obj_sp);
+ }
}
void CommandInterpreter::Clear() {
OpenPOWER on IntegriCloud