mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 22:10:42 +02:00
* set TOC pointer when returning to HandleErrorAddrFrame from signal handler
git-svn-id: trunk@20826 -
This commit is contained in:
parent
1f9d8420b6
commit
60869a0da0
@ -63,6 +63,8 @@ begin
|
|||||||
{ the address of a function is a descriptor, and we need the actual
|
{ the address of a function is a descriptor, and we need the actual
|
||||||
address here -> dereference }
|
address here -> dereference }
|
||||||
pointer(SigContext^.uc_mcontext.iar) := ppointer(@HandleErrorAddrFrame)^;
|
pointer(SigContext^.uc_mcontext.iar) := ppointer(@HandleErrorAddrFrame)^;
|
||||||
|
{ set corresponding TOC for the routine we are returning to }
|
||||||
|
pointer(SigContext^.uc_mcontext.gpr[2]) := (ppointer(@HandleErrorAddrFrame)+1)^;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user