[Lldb-commits] [lldb] r164648 - in /lldb/trunk: include/lldb/API/SBBreakpoint.h scripts/Python/interface/SBBreakpoint.i source/API/SBBreakpoint.cpp
Jim Ingham
jingham at apple.com
Tue Sep 25 16:55:19 PDT 2012
Author: jingham
Date: Tue Sep 25 18:55:19 2012
New Revision: 164648
URL: http://llvm.org/viewvc/llvm-project?rev=164648&view=rev
Log:
Add an API to figure out whether a breakpoint is internal or not.
Modified:
lldb/trunk/include/lldb/API/SBBreakpoint.h
lldb/trunk/scripts/Python/interface/SBBreakpoint.i
lldb/trunk/source/API/SBBreakpoint.cpp
Modified: lldb/trunk/include/lldb/API/SBBreakpoint.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBBreakpoint.h?rev=164648&r1=164647&r2=164648&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBBreakpoint.h (original)
+++ lldb/trunk/include/lldb/API/SBBreakpoint.h Tue Sep 25 18:55:19 2012
@@ -63,6 +63,9 @@
bool
IsEnabled ();
+
+ bool
+ IsInternal ();
uint32_t
GetHitCount () const;
Modified: lldb/trunk/scripts/Python/interface/SBBreakpoint.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBBreakpoint.i?rev=164648&r1=164647&r2=164648&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBBreakpoint.i (original)
+++ lldb/trunk/scripts/Python/interface/SBBreakpoint.i Tue Sep 25 18:55:19 2012
@@ -118,6 +118,9 @@
bool
IsEnabled ();
+
+ bool
+ IsInternal ();
uint32_t
GetHitCount () const;
Modified: lldb/trunk/source/API/SBBreakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBBreakpoint.cpp?rev=164648&r1=164647&r2=164648&view=diff
==============================================================================
--- lldb/trunk/source/API/SBBreakpoint.cpp (original)
+++ lldb/trunk/source/API/SBBreakpoint.cpp Tue Sep 25 18:55:19 2012
@@ -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)
{
More information about the lldb-commits
mailing list