mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 13:09:32 +02:00
* call HandleErrorAddrFrame on return of signal handler, reduces amount of code called within signal handler (for linux/i386)
git-svn-id: trunk@8092 -
This commit is contained in:
parent
1a522594ec
commit
0e64718cb2
@ -79,6 +79,11 @@ begin
|
||||
reenable_signal(sig);
|
||||
{ give runtime error at the position where the signal was raised }
|
||||
if res<>0 then
|
||||
HandleErrorAddrFrame(res,pointer(UContext^.uc_mcontext.eip),pointer(UContext^.uc_mcontext.ebp));
|
||||
begin
|
||||
ucontext^.uc_mcontext.eax := res;
|
||||
ucontext^.uc_mcontext.edx := ucontext^.uc_mcontext.eip;
|
||||
ucontext^.uc_mcontext.ecx := ucontext^.uc_mcontext.ebp;
|
||||
ucontext^.uc_mcontext.eip := ptruint(@HandleErrorAddrFrame);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user