[Lldb-commits] [lldb] r113609 - /lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp

Johnny Chen johnny.chen at apple.com
Fri Sep 10 13:15:14 PDT 2010


Author: johnny
Date: Fri Sep 10 15:15:13 2010
New Revision: 113609

URL: http://llvm.org/viewvc/llvm-project?rev=113609&view=rev
Log:
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.

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=113609&r1=113608&r2=113609&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp Fri Sep 10 15:15:13 2010
@@ -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));





More information about the lldb-commits mailing list