Add "di" and "dis" aliases to "disassemble" so they will win over "display".

llvm-svn: 142834
This commit is contained in:
Jim Ingham 2011-10-24 18:37:00 +00:00
parent c10312cea2
commit 7e18e42235
2 changed files with 11 additions and 1 deletions

View File

@ -177,6 +177,16 @@ CommandInterpreter::Initialize ()
cmd_obj_sp = GetCommandSPExact ("_display", false);
if (cmd_obj_sp)
AddAlias ("display", cmd_obj_sp);
cmd_obj_sp = GetCommandSPExact ("disassemble", false);
if (cmd_obj_sp)
AddAlias ("dis", cmd_obj_sp);
cmd_obj_sp = GetCommandSPExact ("disassemble", false);
if (cmd_obj_sp)
AddAlias ("di", cmd_obj_sp);
cmd_obj_sp = GetCommandSPExact ("_undisplay", false);
if (cmd_obj_sp)

View File

@ -131,7 +131,7 @@ class AbbreviationsTestCase(TestBase):
# ARCH, if not specified, defaults to x86_64.
if self.getArchitecture() in ["", 'x86_64', 'i386']:
self.expect("disass -f",
self.expect("dis -f",
startstr = "a.out`sum(int, int)",
substrs = [' push',
' mov',