aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
index 69cd42b..c74c2bc 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));