summaryrefslogtreecommitdiff
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorjimingham <jingham@apple.com>2025-03-03 09:59:42 -0800
committerGitHub <noreply@github.com>2025-03-03 09:59:42 -0800
commit64c26c8f16aeff3b4ef99f171c771c08353cfbdf (patch)
tree1717e7a0fade0a3d7c33f73858bd5e50bc49a3d8 /lldb/source/Target/Target.cpp
parent44badc9810ede7843c65ac3e32e0820c13eaec85 (diff)
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.
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp1
1 files changed, 1 insertions, 0 deletions
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())