summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/include/lldb/API/SBBreakpointLocation.h3
-rw-r--r--lldb/source/API/SBBreakpointLocation.cpp12
2 files changed, 15 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBBreakpointLocation.h b/lldb/include/lldb/API/SBBreakpointLocation.h
index 3a6755237fc..3b2ca2cf88e 100644
--- a/lldb/include/lldb/API/SBBreakpointLocation.h
+++ b/lldb/include/lldb/API/SBBreakpointLocation.h
@@ -28,6 +28,9 @@ public:
const lldb::SBBreakpointLocation &
operator = (const lldb::SBBreakpointLocation &rhs);
+ break_id_t
+ GetID ();
+
bool
IsValid() const;
diff --git a/lldb/source/API/SBBreakpointLocation.cpp b/lldb/source/API/SBBreakpointLocation.cpp
index d7fc1dc577d..a966df99644 100644
--- a/lldb/source/API/SBBreakpointLocation.cpp
+++ b/lldb/source/API/SBBreakpointLocation.cpp
@@ -281,6 +281,18 @@ SBBreakpointLocation::GetDescription (SBStream &description, DescriptionLevel le
return true;
}
+break_id_t
+SBBreakpointLocation::GetID ()
+{
+ if (m_opaque_sp)
+ {
+ Mutex::Locker api_locker (m_opaque_sp->GetBreakpoint().GetTarget().GetAPIMutex());
+ return m_opaque_sp->GetID ();
+ }
+ else
+ return LLDB_INVALID_BREAK_ID;
+}
+
SBBreakpoint
SBBreakpointLocation::GetBreakpoint ()
{
OpenPOWER on IntegriCloud