Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/GpStuff.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2705,6 +2705,9 @@ procedure SetDataBreakpoint(idx: TDataBreakpointIndex; address: pointer;
cndWritten : when := 1;
cndReadOrWritten: when := 3;
cndExecuted : when := 0;
else
when := 0;
Assert(False);
end;
ctx.Dr7 := ctx.Dr7 AND NOT (3 SHL 8) OR (1 SHL 8);
ctx.Dr7 := ctx.Dr7 AND NOT (3 SHL (16 + (idx - 1) * 4)) OR (when SHL (16 + (idx - 1) * 4));
Expand All @@ -2713,6 +2716,9 @@ procedure SetDataBreakpoint(idx: TDataBreakpointIndex; address: pointer;
sz2B: size := 1;
sz4B: size := 3;
sz8B: size := 2;
else
size := 0;
Assert(False);
end;
ctx.Dr7 := ctx.Dr7 AND NOT (3 SHL (16 + (idx - 1) * 4 + 2)) OR (size SHL (16 + (idx - 1) * 4 + 2));
if idx = 1 then ctx.Dr0 := NativeUInt(address)
Expand Down Expand Up @@ -3510,3 +3516,4 @@ initialization
GDisableDebugBreak := false;
end.