FpDebug: mask range check

This commit is contained in:
Martin 2024-11-08 20:07:14 +01:00
parent 4a2319c986
commit eeca861ba4

View File

@ -1693,11 +1693,13 @@ var
begin
for MapEnumData in BreakMap do begin
// Does break instruction fall completely outside AData
{$PUSH}{$R-}{$Q-}
if (MapEnumData.Location + SizeOf(_BRK_STORE) <= AAdress) or
(MapEnumData.Location >= (AAdress + ASize)) or
(MapEnumData.MapDataPtr^.ErrorSetting)
then
continue;
{$POP}
if (MapEnumData.Location >= AAdress) and (MapEnumData.Location + SizeOf(_BRK_STORE) <= (AAdress + ASize)) then begin
// Breakpoint is completely inside AData