aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2023-11-30 14:35:31 -0800
committerJason Molenda <jmolenda@apple.com>2023-11-30 14:59:10 -0800
commit9e77d666d88d407a7705caa623f7bfc8dc90287d (patch)
tree91e87c36a94fac53072f186c9be9df69466741b3 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent22f72642fe6cd8f049bc905e0f0a69243b650f89 (diff)
downloadllvm-9e77d666d88d407a7705caa623f7bfc8dc90287d.zip
llvm-9e77d666d88d407a7705caa623f7bfc8dc90287d.tar.gz
llvm-9e77d666d88d407a7705caa623f7bfc8dc90287d.tar.bz2
Correctly disable hardware watchpoints after a fork event
Fix a failure on Linux system where follow-fork-mode exists, which caused the large watchpoint NFC patch to be reverted earlier this week.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index fb67151..b043197 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -5546,7 +5546,7 @@ void ProcessGDBRemote::DidForkSwitchHardwareTraps(bool enable) {
addr_t addr = wp_res_sp->GetLoadAddress();
size_t size = wp_res_sp->GetByteSize();
GDBStoppointType type = GetGDBStoppointType(wp_res_sp);
- m_gdb_comm.SendGDBStoppointTypePacket(type, true, addr, size,
+ m_gdb_comm.SendGDBStoppointTypePacket(type, enable, addr, size,
GetInterruptTimeout());
}
}