[Lldb-commits] [lldb] r180117 - Look for an inexact match in just the commands before searching the alias commands as well.

Matt Kopec Matt.Kopec at intel.com
Tue Apr 23 09:17:32 PDT 2013


Author: mkopec
Date: Tue Apr 23 11:17:32 2013
New Revision: 180117

URL: http://llvm.org/viewvc/llvm-project?rev=180117&view=rev
Log:
Look for an inexact match in just the commands before searching the alias commands as well.


Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=180117&r1=180116&r2=180117&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Tue Apr 23 11:17:32 2013
@@ -848,10 +848,15 @@ CommandInterpreter::GetCommandObject (co
         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;





More information about the lldb-commits mailing list