From 64c26c8f16aeff3b4ef99f171c771c08353cfbdf Mon Sep 17 00:00:00 2001 From: jimingham Date: Mon, 3 Mar 2025 09:59:42 -0800 Subject: Fix a bug copying the stop hooks from the dummy target. (#129340) We didn't also copy over the next stop hook id, which meant we would overwrite the stop hooks from the dummy target with stop hooks set after they are copied over. --- lldb/source/Target/Target.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/Target/Target.cpp') diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index db289fe9c4b6..550424720e09 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -211,6 +211,7 @@ Target::~Target() { void Target::PrimeFromDummyTarget(Target &target) { m_stop_hooks = target.m_stop_hooks; + m_stop_hook_next_id = target.m_stop_hook_next_id; for (const auto &breakpoint_sp : target.m_breakpoint_list.Breakpoints()) { if (breakpoint_sp->IsInternal()) -- cgit v1.2.3