1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixed multimap support

This commit is contained in:
Brian Fiete 2020-03-15 06:07:21 -07:00
parent d2d48302de
commit 2fdb6ddff6
2 changed files with 18 additions and 9 deletions

View file

@ -853,8 +853,16 @@ void WinDebugger::ValidateBreakpoints()
usedBreakpoints.Add(breakpoint->mAddr);
WdBreakpoint* foundBreakpoint = NULL;
mBreakpointAddrMap.TryGetValue(breakpoint->mAddr, &foundBreakpoint);
BF_ASSERT(breakpoint == foundBreakpoint);
auto itr = mBreakpointAddrMap.Find(breakpoint->mAddr);
bool found = false;
while (itr != mBreakpointAddrMap.end())
{
WdBreakpoint* foundBreakpoint = itr->mValue;
found |= foundBreakpoint == breakpoint;
itr.NextWithSameKey(breakpoint->mAddr);
}
BF_ASSERT(found);
}
auto checkSibling = (WdBreakpoint*)breakpoint->mLinkedSibling;