Changed "run" to alias "process launch --".
Added "po" alias for "expression -o --"
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117125 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp
index 5bf313b..3f9e902 100644
--- a/source/Interpreter/CommandInterpreter.cpp
+++ b/source/Interpreter/CommandInterpreter.cpp
@@ -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);