Allow "breakpoint command add" to add commands to more than one breakpoint at a time.

<rdar://problem/13314462>

llvm-svn: 216747
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp
index 561e881..b6c46f8 100644
--- a/lldb/source/Interpreter/ScriptInterpreter.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreter.cpp
@@ -44,7 +44,7 @@
 void 
 ScriptInterpreter::CollectDataForBreakpointCommandCallback 
 (
-    BreakpointOptions *bp_options,
+    std::vector<BreakpointOptions *> &bp_options_vec,
     CommandReturnObject &result
 )
 {
@@ -81,6 +81,30 @@
     return return_value;
 }
 
+Error
+ScriptInterpreter::SetBreakpointCommandCallback (std::vector<BreakpointOptions *> &bp_options_vec,
+                                                 const char *callback_text)
+{
+    Error return_error;
+    for (BreakpointOptions *bp_options : bp_options_vec)
+    {
+        return_error = SetBreakpointCommandCallback(bp_options, callback_text);
+        if (return_error.Success())
+            break;
+    }
+    return return_error;
+}
+
+void
+ScriptInterpreter::SetBreakpointCommandCallbackFunction (std::vector<BreakpointOptions *> &bp_options_vec,
+                                                         const char *function_name)
+{
+    for (BreakpointOptions *bp_options : bp_options_vec)
+    {
+        SetBreakpointCommandCallbackFunction(bp_options, function_name);
+    }
+}
+
 std::unique_ptr<ScriptInterpreterLocker>
 ScriptInterpreter::AcquireInterpreterLock ()
 {