[Lldb-commits] [lldb] r156891 - in /lldb/trunk: include/lldb/API/SBBreakpointLocation.h source/API/SBBreakpointLocation.cpp
Jim Ingham
jingham at apple.com
Tue May 15 17:51:15 PDT 2012
Author: jingham
Date: Tue May 15 19:51:15 2012
New Revision: 156891
URL: http://llvm.org/viewvc/llvm-project?rev=156891&view=rev
Log:
Add an accessor on SBBreakpointLocation to get its location ID.
Modified:
lldb/trunk/include/lldb/API/SBBreakpointLocation.h
lldb/trunk/source/API/SBBreakpointLocation.cpp
Modified: lldb/trunk/include/lldb/API/SBBreakpointLocation.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBBreakpointLocation.h?rev=156891&r1=156890&r2=156891&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBBreakpointLocation.h (original)
+++ lldb/trunk/include/lldb/API/SBBreakpointLocation.h Tue May 15 19:51:15 2012
@@ -28,6 +28,9 @@
const lldb::SBBreakpointLocation &
operator = (const lldb::SBBreakpointLocation &rhs);
+ break_id_t
+ GetID ();
+
bool
IsValid() const;
Modified: lldb/trunk/source/API/SBBreakpointLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBBreakpointLocation.cpp?rev=156891&r1=156890&r2=156891&view=diff
==============================================================================
--- lldb/trunk/source/API/SBBreakpointLocation.cpp (original)
+++ lldb/trunk/source/API/SBBreakpointLocation.cpp Tue May 15 19:51:15 2012
@@ -281,6 +281,18 @@
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 ()
{
More information about the lldb-commits
mailing list