commit | 3fcc297c999218b19d7d5ad049e9c955c4bc481d | [log] [tgz] |
---|---|---|
author | Jim Ingham <jingham@apple.com> | Tue Sep 25 23:55:19 2012 +0000 |
committer | Jim Ingham <jingham@apple.com> | Tue Sep 25 23:55:19 2012 +0000 |
tree | e1fc9ce7056c3e4f1004fb405ad3c2d5bdb91add | |
parent | c0ab9ebed439a8d801906d0fef40dd7f87d49fc6 [diff] |
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) {