summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index ed242239ef6..a5e192f472a 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -848,10 +848,15 @@ CommandInterpreter::GetCommandObject (const char *cmd_cstr, StringList *matches)
command_obj = GetCommandSP (cmd_cstr, true, true, matches).get();
}
- // Finally, if there wasn't an exact match among the aliases, look for an inexact match
- // in both the commands and the aliases.
+ // If there wasn't an exact match among the aliases, look for an inexact match
+ // in just the commands.
if (command_obj == NULL)
+ command_obj = GetCommandSP(cmd_cstr, false, false, matches).get();
+
+ // Finally, if there wasn't an inexact match among the commands, look for an inexact
+ // match in both the commands and aliases.
+ if (command_obj == NULL)
command_obj = GetCommandSP(cmd_cstr, true, false, matches).get();
return command_obj;
OpenPOWER on IntegriCloud