GDBServer: Fix unused capture warning

pull/3782/head
Stenzek 2 months ago
parent 3bb39f4e33
commit 2cf108618f
No known key found for this signature in database

@ -925,7 +925,7 @@ void GDBServer::ClientSocket::OnBreakpointHit(CPU::BreakpointType type, VirtualM
return;
const PhysicalMemoryAddress hit_address = CPU::VirtualAddressToPhysical(address);
const auto it = std::ranges::find_if(m_breakpoints, [&type, &address, &hit_address](const ClientBreakpoint& bp) {
const auto it = std::ranges::find_if(m_breakpoints, [&type, &hit_address](const ClientBreakpoint& bp) {
if (bp.type == GDBBreakpointType::Software || bp.type == GDBBreakpointType::Hardware)
return false;
if (bp.type == GDBBreakpointType::Read && type != CPU::BreakpointType::Read)

Loading…
Cancel
Save