diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-09-10 20:15:13 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-09-10 20:15:13 +0000 |
commit | 0e1cb4e0d4a3a314a466f3449d95979c70235f77 (patch) | |
tree | 1cef198d668587f2670d43dc2609366319d00283 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp | |
parent | 77ab138f84ef76f97e589920e36d725fd2ab9bb5 (diff) | |
download | bcm5719-llvm-0e1cb4e0d4a3a314a466f3449d95979c70235f77.tar.gz bcm5719-llvm-0e1cb4e0d4a3a314a466f3449d95979c70235f77.zip |
Fixed the breakage of "breakpoint command add -p 1 2" caused by r113596 as
pointed out by Jim Ingham. The convenient one-liner specification should only
apply when there is only one breakpoint id being specified for the time being.
llvm-svn: 113609
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpointCommand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp index 69cd42bd86c..c74c2bcdc2c 100644 --- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp +++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp @@ -275,7 +275,7 @@ CommandObjectBreakpointCommandAdd::Execute if (m_options.m_use_script_language) { // Special handling for one-liner. - if (command.GetArgumentCount() == 2) + if (command.GetArgumentCount() == 2 && count == 1) interpreter.GetScriptInterpreter()->SetBreakpointCommandCallback (interpreter, bp_loc_sp->GetLocationOptions(), command.GetArgumentAtIndex(1)); @@ -297,7 +297,7 @@ CommandObjectBreakpointCommandAdd::Execute if (m_options.m_use_script_language) { // Special handling for one-liner. - if (command.GetArgumentCount() == 2) + if (command.GetArgumentCount() == 2 && count == 1) interpreter.GetScriptInterpreter()->SetBreakpointCommandCallback (interpreter, bp->GetOptions(), command.GetArgumentAtIndex(1)); |