mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 13:21:35 +02:00
+ Patch from peter to correct frame trace
This commit is contained in:
parent
bae5632d40
commit
8fabc59c3e
@ -749,8 +749,13 @@ end;
|
|||||||
procedure show_call_frame(djgpp_exception_state : pexception_state);
|
procedure show_call_frame(djgpp_exception_state : pexception_state);
|
||||||
begin
|
begin
|
||||||
errln('Call frame traceback EIPs:');
|
errln('Call frame traceback EIPs:');
|
||||||
|
{$ifdef VER1_0}
|
||||||
errln(BackTraceStrFunc(djgpp_exception_state^.__eip));
|
errln(BackTraceStrFunc(djgpp_exception_state^.__eip));
|
||||||
dump_stack(stderr,djgpp_exception_state^.__ebp);
|
dump_stack(stderr,djgpp_exception_state^.__ebp);
|
||||||
|
{$else}
|
||||||
|
errln(BackTraceStrFunc(Pointer(djgpp_exception_state^.__eip)));
|
||||||
|
dump_stack(stderr,Pointer(djgpp_exception_state^.__ebp));
|
||||||
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -1515,7 +1520,11 @@ begin
|
|||||||
eip:=djgpp_exception_state_ptr^.__eip;
|
eip:=djgpp_exception_state_ptr^.__eip;
|
||||||
ebp:=djgpp_exception_state_ptr^.__ebp;
|
ebp:=djgpp_exception_state_ptr^.__ebp;
|
||||||
djgpp_exception_state_ptr:=djgpp_exception_state_ptr^.__exception_ptr;
|
djgpp_exception_state_ptr:=djgpp_exception_state_ptr^.__exception_ptr;
|
||||||
|
{$ifdef VER1_0}
|
||||||
HandleErrorAddrFrame(ErrorOfSig,eip,ebp);
|
HandleErrorAddrFrame(ErrorOfSig,eip,ebp);
|
||||||
|
{$else}
|
||||||
|
HandleErrorAddrFrame(ErrorOfSig,pointer(eip),pointer(ebp));
|
||||||
|
{$endif}
|
||||||
End
|
End
|
||||||
else
|
else
|
||||||
{ probably higher level is required }
|
{ probably higher level is required }
|
||||||
@ -1537,7 +1546,10 @@ end;
|
|||||||
{$endif IN_SYSTEM}
|
{$endif IN_SYSTEM}
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.11 2002-10-14 19:39:16 peter
|
Revision 1.12 2003-03-18 08:48:41 michael
|
||||||
|
+ Patch from peter to correct frame trace
|
||||||
|
|
||||||
|
Revision 1.11 2002/10/14 19:39:16 peter
|
||||||
* threads unit added for thread support
|
* threads unit added for thread support
|
||||||
|
|
||||||
Revision 1.10 2002/09/07 16:01:18 peter
|
Revision 1.10 2002/09/07 16:01:18 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user