[Lldb-commits] [lldb] r120511 - /lldb/trunk/source/Commands/CommandObjectHelp.cpp
Jim Ingham
jingham at apple.com
Tue Nov 30 16:42:17 PST 2010
Author: jingham
Date: Tue Nov 30 18:42:17 2010
New Revision: 120511
URL: http://llvm.org/viewvc/llvm-project?rev=120511&view=rev
Log:
GetCommandObject returns no matches in the match array when there is only one match. That's odd, but I don't want to change that right now, just cope with it where I'm doing the command matching.
Modified:
lldb/trunk/source/Commands/CommandObjectHelp.cpp
Modified: lldb/trunk/source/Commands/CommandObjectHelp.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectHelp.cpp?rev=120511&r1=120510&r2=120511&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectHelp.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectHelp.cpp Tue Nov 30 18:42:17 2010
@@ -94,7 +94,7 @@
&matches);
if (found_cmd == NULL)
all_okay = false;
- else if (matches.GetSize() != 1)
+ else if (matches.GetSize() > 1)
all_okay = false;
else
sub_cmd_obj = found_cmd;
More information about the lldb-commits
mailing list