Add a command and an SB API to create exception breakpoints.  Make the break output prettier for Exception breakpoints.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@152081 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Target.cpp b/source/Target/Target.cpp
index f3b8a78..ae69e5d 100644
--- a/source/Target/Target.cpp
+++ b/source/Target/Target.cpp
@@ -287,6 +287,29 @@
     return bp_sp;
 }
 
+lldb::BreakpointSP
+Target::CreateBreakpoint (const FileSpecList *containingModules,
+                  const FileSpecList *containingSourceFiles,
+                  std::vector<std::string> func_names,
+                  uint32_t func_name_type_mask, 
+                  bool internal,
+                  LazyBool skip_prologue)
+{
+    BreakpointSP bp_sp;
+    size_t num_names = func_names.size();
+    if (num_names > 0)
+    {
+        SearchFilterSP filter_sp(GetSearchFilterForModuleAndCUList (containingModules, containingSourceFiles));
+        
+        BreakpointResolverSP resolver_sp (new BreakpointResolverName (NULL, 
+                                                                      func_names,
+                                                                      func_name_type_mask,
+                                                                      skip_prologue == eLazyBoolCalculate ? GetSkipPrologue() : skip_prologue));
+        bp_sp = CreateBreakpoint (filter_sp, resolver_sp, internal);
+    }
+    return bp_sp;
+}
+
 BreakpointSP
 Target::CreateBreakpoint (const FileSpecList *containingModules,
                           const FileSpecList *containingSourceFiles,
@@ -304,7 +327,7 @@
         BreakpointResolverSP resolver_sp (new BreakpointResolverName (NULL, 
                                                                       func_names,
                                                                       num_names, 
-                                                                      func_name_type_mask, 
+                                                                      func_name_type_mask,
                                                                       skip_prologue == eLazyBoolCalculate ? GetSkipPrologue() : skip_prologue));
         bp_sp = CreateBreakpoint (filter_sp, resolver_sp, internal);
     }