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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113609 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectBreakpointCommand.cpp b/source/Commands/CommandObjectBreakpointCommand.cpp
index 69cd42b..c74c2bc 100644
--- a/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -275,7 +275,7 @@
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 @@
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));