mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
fix(libc): don't walk guest frame pointers when reporting an unhandled exception
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ButHENCbXXt8h4EZuWUabJ
This commit is contained in:
@@ -240,8 +240,7 @@ void APS5_VABI __cxa_free_exception_nid_postfix(void* object) {
|
||||
header->unwind.exception_cleanup = Cleanup;
|
||||
++globals.uncaught;
|
||||
_Unwind_RaiseException_nid_postfix(&header->unwind);
|
||||
RawLog("[libc] unhandled exception '%s' thrown from %p (caller %p)\n", type ? type->name() : "?", __builtin_return_address(0),
|
||||
static_cast<void**>(static_cast<void**>(__builtin_frame_address(0))[0])[1]);
|
||||
RawLog("[libc] unhandled exception '%s' thrown from %p\n", type ? type->name() : "?", __builtin_return_address(0));
|
||||
__cxa_begin_catch_nid_postfix(&header->unwind);
|
||||
InvokeTerminate(header->terminate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user