diff options
| author | Jim Ingham <jingham@apple.com> | 2012-05-16 00:51:15 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2012-05-16 00:51:15 +0000 |
| commit | b08a9442fd26763d84971cf88ebc972bbc860661 (patch) | |
| tree | 0d81471a4e6ec187d12b1c652264350d24ec1a87 /lldb/source/API/SBBreakpointLocation.cpp | |
| parent | b7e4367fefab1ffb85c5f1b0dddb163933dc3cae (diff) | |
| download | bcm5719-llvm-b08a9442fd26763d84971cf88ebc972bbc860661.tar.gz bcm5719-llvm-b08a9442fd26763d84971cf88ebc972bbc860661.zip | |
Add an accessor on SBBreakpointLocation to get its location ID.
llvm-svn: 156891
Diffstat (limited to 'lldb/source/API/SBBreakpointLocation.cpp')
| -rw-r--r-- | lldb/source/API/SBBreakpointLocation.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 () { |

