[Lldb-commits] [lldb] r117125 - /lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Jim Ingham jingham at apple.com
Fri Oct 22 11:47:16 PDT 2010


Author: jingham
Date: Fri Oct 22 13:47:16 2010
New Revision: 117125

URL: http://llvm.org/viewvc/llvm-project?rev=117125&view=rev
Log:
Changed "run" to alias "process launch --".
Added "po" alias for "expression -o --"

Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=117125&r1=117124&r2=117125&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Fri Oct 22 13:47:16 2010
@@ -83,8 +83,8 @@
 
     // Set up some initial aliases.
     result.Clear(); HandleCommand ("command alias q        quit", false, result);
-    result.Clear(); HandleCommand ("command alias run      process launch", false, result);
-    result.Clear(); HandleCommand ("command alias r        process launch", false, result);
+    result.Clear(); HandleCommand ("command alias run      process launch --", false, result);
+    result.Clear(); HandleCommand ("command alias r        process launch --", false, result);
     result.Clear(); HandleCommand ("command alias c        process continue", false, result);
     result.Clear(); HandleCommand ("command alias continue process continue", false, result);
     result.Clear(); HandleCommand ("command alias expr     expression", false, result);
@@ -102,6 +102,7 @@
     result.Clear(); HandleCommand ("command alias list     source list", false, result);
     result.Clear(); HandleCommand ("command alias p        frame variable", false, result);
     result.Clear(); HandleCommand ("command alias print    frame variable", false, result);
+    result.Clear(); HandleCommand ("command alias po       expression -o --", false, result);
 }
 
 const char *
@@ -454,7 +455,8 @@
 
     if (m_alias_dict.size() > 0)
     {
-        result.AppendMessage("The following is a list of your current command abbreviations (see 'help commands alias' for more info):");
+        result.AppendMessage("The following is a list of your current command abbreviations "
+                             "(see 'help commands alias' for more info):");
         result.AppendMessage("");
         max_len = FindLongestCommandWord (m_alias_dict);
 
@@ -753,7 +755,8 @@
         // put an empty string in element 0.
         std::string command_partial_str;
         if (cursor_index >= 0)
-            command_partial_str.assign(parsed_line.GetArgumentAtIndex(cursor_index), parsed_line.GetArgumentAtIndex(cursor_index) + cursor_char_position);
+            command_partial_str.assign(parsed_line.GetArgumentAtIndex(cursor_index), 
+                                       parsed_line.GetArgumentAtIndex(cursor_index) + cursor_char_position);
 
         std::string common_prefix;
         matches.LongestCommonPrefix (common_prefix);





More information about the lldb-commits mailing list