summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-10-10 16:51:31 +0000
committerJim Ingham <jingham@apple.com>2012-10-10 16:51:31 +0000
commit71bf2995813ebde1127e7c4de2787038a82d0861 (patch)
treeca8ad2d40a5b5c2fc81d34d5fd64dd4607b6285b /lldb/source/Interpreter
parente723a27ffebe0f62d647c60eb8d71bd554631473 (diff)
downloadbcm5719-llvm-71bf2995813ebde1127e7c4de2787038a82d0861.tar.gz
bcm5719-llvm-71bf2995813ebde1127e7c4de2787038a82d0861.zip
Don't make regexp commands as regular commands - they are "short cuts" and users should be able to override them with "unalias" but you can't unalias normal commands.
llvm-svn: 165630
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 85d7a8953df..56a9d1bcad3 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -243,6 +243,10 @@ CommandInterpreter::Initialize ()
if (cmd_obj_sp)
AddAlias ("undisplay", cmd_obj_sp);
+ cmd_obj_sp = GetCommandSPExact ("_regexp-bt", false);
+ if (cmd_obj_sp)
+ AddAlias ("bt", cmd_obj_sp);
+
cmd_obj_sp = GetCommandSPExact ("target create", false);
if (cmd_obj_sp)
AddAlias ("file", cmd_obj_sp);
@@ -542,7 +546,7 @@ CommandInterpreter::LoadCommandDictionary ()
std::auto_ptr<CommandObjectRegexCommand>
bt_regex_cmd_ap(new CommandObjectRegexCommand (*this,
- "bt",
+ "_regexp-bt",
"Show a backtrace. An optional argument is accepted; if that argument is a number, it specifies the number of frames to display. If that argument is 'all', full backtraces of all threads are displayed.",
"bt [<digit>|all]", 2));
if (bt_regex_cmd_ap.get())
OpenPOWER on IntegriCloud