mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 06:49:24 +02:00
* map bus error to runerror 214
git-svn-id: trunk@2474 -
This commit is contained in:
parent
0c8c95c334
commit
fd0f51c463
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
This file is part of the Free Pascal run time library.
|
This file is part of the Free Pascal run time library.
|
||||||
Copyright (c) 1999-2000 by Michael Van Canneyt,
|
Copyright (c) 1999-2006 by Michael Van Canneyt,
|
||||||
member of the Free Pascal development team.
|
member of the Free Pascal development team.
|
||||||
|
|
||||||
Signal handler is arch dependant due to processor to language
|
Signal handler is arch dependant due to processor to language
|
||||||
@ -58,12 +58,16 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
SIGILL,
|
SIGILL,
|
||||||
SIGBUS,
|
|
||||||
SIGSEGV :
|
SIGSEGV :
|
||||||
begin
|
begin
|
||||||
addr := siginfo^._sifields._sigfault._addr;
|
addr := siginfo^._sifields._sigfault._addr;
|
||||||
res:=216;
|
res:=216;
|
||||||
end;
|
end;
|
||||||
|
SIGBUS :
|
||||||
|
begin
|
||||||
|
addr := siginfo^._sifields._sigfault._addr;
|
||||||
|
res:=214;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
{ give runtime error at the position where the signal was raised }
|
{ give runtime error at the position where the signal was raised }
|
||||||
if res<>0 then
|
if res<>0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user