mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 21:09:27 +02:00
FpDebug: Improve Stack after calling TProc(nil) / Call to code not in apps memory
(cherry picked from commit 6993390bab
)
This commit is contained in:
parent
9beff229c7
commit
672e289ef3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user