FpDebug: Added workaround for frame detection. Exceptions stops at entry point, and there can not yet be a frame.

git-svn-id: trunk@63461 -
This commit is contained in:
martin 2020-06-28 14:43:13 +00:00
parent 119607908c
commit b9173dead1

View File

@ -2654,6 +2654,11 @@ begin
OutSideFrame := False;
end;
LastFrameBase := FrameBase;
if (not OutSideFrame) and (NextIdx = 1) and (AnEntry.ProcSymbol <> nil) then begin
OutSideFrame := Address = LocToAddrOrNil(AnEntry.ProcSymbol.Address); // the top frame must be outside frame, if it is at entrypoint / needed for exceptions
end;
if OutSideFrame then begin
if not Process.ReadData(StackPtr, Size, Address) or (Address = 0) then Break;
{$PUSH}{$R-}{$Q-}