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

(cherry picked from commit 6993390bab)
This commit is contained in:
Martin 2022-02-09 19:30:40 +01:00
parent 9beff229c7
commit 672e289ef3

View File

@ -2845,7 +2845,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;