mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 10:01:42 +00:00
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
This commit is contained in:
parent
e723a27ffe
commit
71bf299581
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user