[Lldb-commits] [lldb] Fix a potential use-after-free in StopInfoBreakpoint. (PR #163471)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 20 13:56:53 PDT 2025
================
@@ -164,6 +173,14 @@ class BreakpointLocationCollection {
collection m_break_loc_collection;
mutable std::mutex m_collection_mutex;
+ /// These are used if we're preserving breakpoints in this list:
+ const bool m_preserving_bkpts = false;
+ struct RefCountedBPSP {
+ RefCountedBPSP(lldb::BreakpointSP in_bp_sp) : ref_cnt(1), bp_sp(in_bp_sp) {}
+ uint64_t ref_cnt;
----------------
jimingham wrote:
Off-line Jonas expressed a preference for holding a BreakpointSP per location to simplify the code. So I pushed a change to do that.
https://github.com/llvm/llvm-project/pull/163471
More information about the lldb-commits
mailing list