[Lldb-commits] [lldb] r176291 - breakpoint command add currently doesn't support adding commands to more than one breakpoint
Jim Ingham
jingham at apple.com
Thu Feb 28 11:30:07 PST 2013
Author: jingham
Date: Thu Feb 28 13:30:07 2013
New Revision: 176291
URL: http://llvm.org/viewvc/llvm-project?rev=176291&view=rev
Log:
breakpoint command add currently doesn't support adding commands to more than one breakpoint
at a time. Enforce this for now (we should relax the requirement when we have a little more time.)
<rdar://problem/13314462>
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=176291&r1=176290&r2=176291&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp Thu Feb 28 13:30:07 2013
@@ -534,6 +534,13 @@ protected:
if (result.Succeeded())
{
const size_t count = valid_bp_ids.GetSize();
+ if (count > 1)
+ {
+ result.AppendError ("can only add commands to one breakpoint at a time.");
+ result.SetStatus (eReturnStatusFailed);
+ return false;
+ }
+
for (size_t i = 0; i < count; ++i)
{
BreakpointID cur_bp_id = valid_bp_ids.GetBreakpointIDAtIndex (i);
More information about the lldb-commits
mailing list