mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-14 19:43:40 +01:00
* Moved WriteExceptionToStdErr to system unit, so it is observed even in absence of sysutils (bug ID 27708)
git-svn-id: trunk@30551 -
This commit is contained in:
parent
4769a5407c
commit
94e57aa463
@ -993,7 +993,10 @@ Begin
|
|||||||
redirection to seriell i/o }
|
redirection to seriell i/o }
|
||||||
{$ifndef EMBEDDED}
|
{$ifndef EMBEDDED}
|
||||||
{ Show runtime error and exit }
|
{ Show runtime error and exit }
|
||||||
pstdout:=@stdout;
|
if WriteExceptionToStdErr then
|
||||||
|
pstdout:=@stderr
|
||||||
|
else
|
||||||
|
pstdout:=@stdout;
|
||||||
If erroraddr<>nil Then
|
If erroraddr<>nil Then
|
||||||
Begin
|
Begin
|
||||||
Writeln(pstdout^,'Runtime error ',Errorcode,' at $',hexstr(erroraddr));
|
Writeln(pstdout^,'Runtime error ',Errorcode,' at $',hexstr(erroraddr));
|
||||||
|
|||||||
@ -752,6 +752,9 @@ Var
|
|||||||
{ Stack checking }
|
{ Stack checking }
|
||||||
StackBottom : Pointer;
|
StackBottom : Pointer;
|
||||||
StackLength : SizeUInt;
|
StackLength : SizeUInt;
|
||||||
|
|
||||||
|
Var
|
||||||
|
WriteExceptionToStdErr : Boolean = True;
|
||||||
|
|
||||||
function StackTop: Pointer;
|
function StackTop: Pointer;
|
||||||
|
|
||||||
|
|||||||
@ -255,7 +255,6 @@ type
|
|||||||
|
|
||||||
Var
|
Var
|
||||||
OnShowException : Procedure (Msg : ShortString);
|
OnShowException : Procedure (Msg : ShortString);
|
||||||
WriteExceptionToStdErr : Boolean = True;
|
|
||||||
|
|
||||||
Const
|
Const
|
||||||
HexDisplayPrefix : string = '$';
|
HexDisplayPrefix : string = '$';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user