diff options
| author | Jim Ingham <jingham@apple.com> | 2010-06-22 21:12:54 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2010-06-22 21:12:54 +0000 |
| commit | 05407f6b252d6f148274e389126373cef2552cec (patch) | |
| tree | 8a53bcfe7c0de3146cb815d8aa85e94cd3f3cc06 /lldb/source/API/SBBreakpointLocation.cpp | |
| parent | 6250bd9e3cfbf793d032908c23d6c68bd1e49d39 (diff) | |
| download | bcm5719-llvm-05407f6b252d6f148274e389126373cef2552cec.tar.gz bcm5719-llvm-05407f6b252d6f148274e389126373cef2552cec.zip | |
Make an explicit GetThreadSpecNoCreate accessor so you don't have to get the const-ness right to ensure you are not making a copy of the owning breakpoint's ThreadSpec in a breakpoint location. Also change the name from NoCopy to NoCreate since that's clearer.
llvm-svn: 106578
Diffstat (limited to 'lldb/source/API/SBBreakpointLocation.cpp')
| -rw-r--r-- | lldb/source/API/SBBreakpointLocation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/API/SBBreakpointLocation.cpp b/lldb/source/API/SBBreakpointLocation.cpp index 206d5fdddf0..b5e78596e87 100644 --- a/lldb/source/API/SBBreakpointLocation.cpp +++ b/lldb/source/API/SBBreakpointLocation.cpp @@ -104,7 +104,7 @@ SBBreakpointLocation::GetThreadID () { tid_t sb_thread_id = (lldb::tid_t) LLDB_INVALID_THREAD_ID; if (m_break_loc_sp) - sb_thread_id = m_break_loc_sp->GetLocationOptions()->GetThreadSpec()->GetTID(); + sb_thread_id = m_break_loc_sp->GetLocationOptions()->GetThreadSpecNoCreate()->GetTID(); return sb_thread_id; } @@ -121,7 +121,7 @@ SBBreakpointLocation::GetThreadIndex() const { if (m_break_loc_sp) { - const ThreadSpec *thread_spec = m_break_loc_sp->GetOptionsNoCopy()->GetThreadSpec(); + const ThreadSpec *thread_spec = m_break_loc_sp->GetOptionsNoCreate()->GetThreadSpecNoCreate(); if (thread_spec == NULL) return 0; else @@ -143,7 +143,7 @@ SBBreakpointLocation::GetThreadName () const { if (m_break_loc_sp) { - const ThreadSpec *thread_spec = m_break_loc_sp->GetOptionsNoCopy()->GetThreadSpec(); + const ThreadSpec *thread_spec = m_break_loc_sp->GetOptionsNoCreate()->GetThreadSpecNoCreate(); if (thread_spec == NULL) return NULL; else @@ -164,7 +164,7 @@ SBBreakpointLocation::GetQueueName () const { if (m_break_loc_sp) { - const ThreadSpec *thread_spec = m_break_loc_sp->GetOptionsNoCopy()->GetThreadSpec(); + const ThreadSpec *thread_spec = m_break_loc_sp->GetOptionsNoCreate()->GetThreadSpecNoCreate(); if (thread_spec == NULL) return NULL; else |

