From 348916bf9f1d76b30fbca459bc1fe479328593a4 Mon Sep 17 00:00:00 2001 From: Pavel <68122101+red-prig@users.noreply.github.com> Date: Tue, 14 Feb 2023 19:30:27 +0300 Subject: [PATCH] Halt instead DebugBreak --- kernel/ps4_libkernel.pas | 4 ++-- sys/sys_crt.pas | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/ps4_libkernel.pas b/kernel/ps4_libkernel.pas index af785185..38043764 100644 --- a/kernel/ps4_libkernel.pas +++ b/kernel/ps4_libkernel.pas @@ -94,7 +94,7 @@ Const procedure ps4_stack_chk_fail; SysV_ABI_CDecl; begin Writeln(StdErr,GetCurrentThreadId,':Stack overflow detected! Aborting program.'); - DebugBreak; + Halt; end; {$I StopNotificationReason.inc} @@ -103,7 +103,7 @@ end; procedure ps4_sceKernelDebugRaiseException(dwStopReason,dwStopId:DWORD); SysV_ABI_CDecl; begin Writeln(StdErr,'RaiseException:',HexStr(dwStopReason,8),':',HexStr(dwStopId,8),':',GetStopReasonInfo(dwStopReason)); - DebugBreak; + Halt; end; procedure ps4_sceKernelDebugRaiseExceptionOnReleaseMode(dwStopReason,dwStopId:DWORD); SysV_ABI_CDecl; diff --git a/sys/sys_crt.pas b/sys/sys_crt.pas index 6a17c42c..8063b9dd 100644 --- a/sys/sys_crt.pas +++ b/sys/sys_crt.pas @@ -167,7 +167,7 @@ end; initialization AddExitProc(@_sys_crt_fini); InitCriticalSection(StdOutLock); - _sys_crt_init + _sys_crt_init; end.