[Lldb-commits] [lldb] r124000 - /lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp

Jim Ingham jingham at apple.com
Fri Jan 21 14:13:26 PST 2011


Author: jingham
Date: Fri Jan 21 16:13:25 2011
New Revision: 124000

URL: http://llvm.org/viewvc/llvm-project?rev=124000&view=rev
Log:
The code to check whether the number of arguments was 0 was not necessary, VerifyBreakpointIDs will turn an empty argument into the last specified breakpoint.

Modified:
    lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp

Modified: lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp?rev=124000&r1=123999&r2=124000&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp Fri Jan 21 16:13:25 2011
@@ -282,13 +282,6 @@
         return false;
     }
 
-    if (command.GetArgumentCount() == 0)
-    {
-        result.AppendError ("No breakpoint specified to which to add the commands");
-        result.SetStatus (eReturnStatusFailed);
-        return false;
-    }
-
     BreakpointIDList valid_bp_ids;
     CommandObjectMultiwordBreakpoint::VerifyBreakpointIDs (command, target, result, &valid_bp_ids);
 





More information about the lldb-commits mailing list