From 038ff816e17f7675f24b1ad2270da5f1d8799582 Mon Sep 17 00:00:00 2001 From: Matt Kopec Date: Tue, 23 Apr 2013 16:17:32 +0000 Subject: [PATCH] Look for an inexact match in just the commands before searching the alias commands as well. llvm-svn: 180117 --- lldb/source/Interpreter/CommandInterpreter.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index ed242239ef61..a5e192f472a0 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -848,9 +848,14 @@ 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();