Skip to content

Commit 9e77d66

Browse files
committed
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.
1 parent 22f7264 commit 9e77d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5546,7 +5546,7 @@ void ProcessGDBRemote::DidForkSwitchHardwareTraps(bool enable) {
55465546
addr_t addr = wp_res_sp->GetLoadAddress();
55475547
size_t size = wp_res_sp->GetByteSize();
55485548
GDBStoppointType type = GetGDBStoppointType(wp_res_sp);
5549-
m_gdb_comm.SendGDBStoppointTypePacket(type, true, addr, size,
5549+
m_gdb_comm.SendGDBStoppointTypePacket(type, enable, addr, size,
55505550
GetInterruptTimeout());
55515551
}
55525552
}

0 commit comments

Comments
 (0)