diff options
author | Jim Ingham <jingham@apple.com> | 2010-10-22 18:47:16 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-10-22 18:47:16 +0000 |
commit | 49e80a11426f106d786d262e5cc4c94471ccdb00 (patch) | |
tree | de348c471764bcc3c8a31d052ddf0de2e9a8ffc2 | |
parent | 46ea135ea72dd51787f54f598fa31893bd6bc07b (diff) | |
download | bcm5719-llvm-49e80a11426f106d786d262e5cc4c94471ccdb00.tar.gz bcm5719-llvm-49e80a11426f106d786d262e5cc4c94471ccdb00.zip |
Changed "run" to alias "process launch --".
Added "po" alias for "expression -o --"
llvm-svn: 117125
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 5bf313ba7c2..3f9e902de47 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -83,8 +83,8 @@ CommandInterpreter::Initialize () // 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 @@ CommandInterpreter::Initialize () 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 @@ CommandInterpreter::GetHelp (CommandReturnObject &result) 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 @@ CommandInterpreter::HandleCompletion (const char *current_line, // 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); |