summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorMatt Kopec <Matt.Kopec@intel.com>2013-04-23 16:17:32 +0000
committerMatt Kopec <Matt.Kopec@intel.com>2013-04-23 16:17:32 +0000
commit038ff816e17f7675f24b1ad2270da5f1d8799582 (patch)
tree605e7cd9603763417c29d6cb2c476120bbd3209d /lldb/source/Interpreter/CommandInterpreter.cpp
parentc63d73e59d1ecca77ec717ca6a6e844ff02598bf (diff)
downloadbcm5719-llvm-038ff816e17f7675f24b1ad2270da5f1d8799582.tar.gz
bcm5719-llvm-038ff816e17f7675f24b1ad2270da5f1d8799582.zip
Look for an inexact match in just the commands before searching the alias commands as well.
llvm-svn: 180117
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