FpDebug: Improve Stack after calling TProc(nil) / Call to code not in apps memory

This commit is contained in:
Martin 2022-02-09 19:30:40 +01:00
parent dce19de110
commit 6993390bab

View File

@ -2977,7 +2977,7 @@ begin
if Process.Disassembler.LastErrorWasMemReadErr then begin
inc(CodeReadErrCnt);
if CodeReadErrCnt > 5 then break; // If the code cannot be read the stack pointer is wrong.
if NextIdx = 0 then
if NextIdx <= 1 then
OutSideFrame := True; // Maybe after "TProc(nil)();" call, then no frame could have been set up
end;
end;