mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-21 03:02:57 +02:00
* fixed signal handling
This commit is contained in:
parent
19c44b76f2
commit
0ab36d6e91
@ -17,7 +17,7 @@
|
||||
**********************************************************************}
|
||||
|
||||
|
||||
procedure SignalToRunerror(Sig: longint; SigContext: SigContextRec); cdecl;
|
||||
procedure SignalToRunerror(Sig: longint; SigContext: PSigContextRec); cdecl;
|
||||
|
||||
var
|
||||
res,fpustate : word;
|
||||
@ -36,12 +36,15 @@ begin
|
||||
end;
|
||||
{ give runtime error at the position where the signal was raised }
|
||||
if res<>0 then
|
||||
HandleErrorAddrFrame(res,pointer(SigContext.uc.uc_mcontext.pt_regs^.nip),pointer(SigContext.uc.uc_mcontext.pt_regs^.gpr[1]));
|
||||
HandleErrorAddrFrame(res,pointer(SigContext^.pt_regs^.nip),pointer(SigContext^.pt_regs^.gpr[1]));
|
||||
end;
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.2 2003-11-21 00:40:06 florian
|
||||
Revision 1.3 2004-01-01 16:28:16 jonas
|
||||
* fixed signal handling
|
||||
|
||||
Revision 1.2 2003/11/21 00:40:06 florian
|
||||
* some arm issues fixed
|
||||
|
||||
Revision 1.1 2003/11/02 14:53:06 jonas
|
||||
|
@ -231,7 +231,7 @@ type
|
||||
end;
|
||||
|
||||
PSigContextRec = ^SigContextRec;
|
||||
SigContextRec = t_rt_sigframe;
|
||||
SigContextRec = tsigcontext_struct;
|
||||
{$endif cpupowerpc}
|
||||
|
||||
|
||||
@ -342,7 +342,10 @@ type
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.14 2003-11-21 00:40:06 florian
|
||||
Revision 1.15 2004-01-01 16:28:16 jonas
|
||||
* fixed signal handling
|
||||
|
||||
Revision 1.14 2003/11/21 00:40:06 florian
|
||||
* some arm issues fixed
|
||||
|
||||
Revision 1.13 2003/11/02 14:53:06 jonas
|
||||
|
Loading…
Reference in New Issue
Block a user