Add an API to figure out whether a breakpoint is internal or not.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@164648 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/lldb/API/SBBreakpoint.h b/include/lldb/API/SBBreakpoint.h
index 5338b0a..aa0a2e4 100644
--- a/include/lldb/API/SBBreakpoint.h
+++ b/include/lldb/API/SBBreakpoint.h
@@ -63,6 +63,9 @@
 
     bool
     IsEnabled ();
+    
+    bool
+    IsInternal ();
 
     uint32_t
     GetHitCount () const;
diff --git a/scripts/Python/interface/SBBreakpoint.i b/scripts/Python/interface/SBBreakpoint.i
index 0e9a80c..414936f 100644
--- a/scripts/Python/interface/SBBreakpoint.i
+++ b/scripts/Python/interface/SBBreakpoint.i
@@ -118,6 +118,9 @@
 
     bool
     IsEnabled ();
+    
+    bool
+    IsInternal ();
 
     uint32_t
     GetHitCount () const;
diff --git a/source/API/SBBreakpoint.cpp b/source/API/SBBreakpoint.cpp
index d9a92d4..8be6704 100644
--- a/source/API/SBBreakpoint.cpp
+++ b/source/API/SBBreakpoint.cpp
@@ -234,6 +234,18 @@
         return false;
 }
 
+bool
+SBBreakpoint::IsInternal ()
+{
+    if (m_opaque_sp)
+    {
+        Mutex::Locker api_locker (m_opaque_sp->GetTarget().GetAPIMutex());
+        return m_opaque_sp->IsInternal();
+    }
+    else
+        return false;
+}
+
 void
 SBBreakpoint::SetIgnoreCount (uint32_t count)
 {