summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-02-28 19:30:07 +0000
committerJim Ingham <jingham@apple.com>2013-02-28 19:30:07 +0000
commitd9916eaeccf454e4a0dc4e09384715b9a0af24bf (patch)
treefc455cfe5a888110a3672c41211049317f00cc15 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp
parent8c8f9871c36ab58ff044e534d61d55610773f59e (diff)
downloadbcm5719-llvm-d9916eaeccf454e4a0dc4e09384715b9a0af24bf.tar.gz
bcm5719-llvm-d9916eaeccf454e4a0dc4e09384715b9a0af24bf.zip
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> llvm-svn: 176291
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
index 8346d5316c0..b1402c8bc61 100644
--- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -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);
OpenPOWER on IntegriCloud