diff options
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointSite.cpp')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointSite.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Breakpoint/BreakpointSite.cpp b/lldb/source/Breakpoint/BreakpointSite.cpp index a757a01824c7..a33fd0a1c462 100644 --- a/lldb/source/Breakpoint/BreakpointSite.cpp +++ b/lldb/source/Breakpoint/BreakpointSite.cpp @@ -1,4 +1,4 @@ -//===-- BreakpointSite.cpp --------------------------------------*- C++ -*-===// +//===-- BreakpointSite.cpp ------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -156,6 +156,13 @@ void BreakpointSite::BumpHitCounts() { } } +void BreakpointSite::SetHardwareIndex(uint32_t index) { + std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); + for (BreakpointLocationSP loc_sp : m_owners.BreakpointLocations()) { + loc_sp->SetHardwareIndex(index); + } +} + bool BreakpointSite::IntersectsRange(lldb::addr_t addr, size_t size, lldb::addr_t *intersect_addr, size_t *intersect_size, |