[Lldb-commits] [lldb] r142834 - in /lldb/trunk: source/Interpreter/CommandInterpreter.cpp test/functionalities/abbreviation/TestAbbreviations.py
Jim Ingham
jingham at apple.com
Mon Oct 24 11:37:00 PDT 2011
Author: jingham
Date: Mon Oct 24 13:37:00 2011
New Revision: 142834
URL: http://llvm.org/viewvc/llvm-project?rev=142834&view=rev
Log:
Add "di" and "dis" aliases to "disassemble" so they will win over "display".
Modified:
lldb/trunk/source/Interpreter/CommandInterpreter.cpp
lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py
Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=142834&r1=142833&r2=142834&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Mon Oct 24 13:37:00 2011
@@ -177,6 +177,16 @@
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)
Modified: lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py?rev=142834&r1=142833&r2=142834&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py (original)
+++ lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py Mon Oct 24 13:37:00 2011
@@ -131,7 +131,7 @@
# 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',
More information about the lldb-commits
mailing list