mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:19:16 +02:00
* prevent endless stack dump if an exception occured during the dump itself.
git-svn-id: trunk@1427 -
This commit is contained in:
parent
8af13ed6ae
commit
2332eae403
@ -749,6 +749,7 @@ var
|
|||||||
caller_frame,
|
caller_frame,
|
||||||
caller_addr : Pointer;
|
caller_addr : Pointer;
|
||||||
Begin
|
Begin
|
||||||
|
try
|
||||||
prevbp:=bp-1;
|
prevbp:=bp-1;
|
||||||
i:=0;
|
i:=0;
|
||||||
is_dev:=do_isdevice(textrec(f).Handle);
|
is_dev:=do_isdevice(textrec(f).Handle);
|
||||||
@ -766,6 +767,9 @@ Begin
|
|||||||
prevbp:=bp;
|
prevbp:=bp;
|
||||||
bp:=caller_frame;
|
bp:=caller_frame;
|
||||||
End;
|
End;
|
||||||
|
except
|
||||||
|
{ prevent endless dump if an exception occured }
|
||||||
|
end;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user