mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-18 20:15:56 +00:00
abort() (a failed assert, std::terminate) and an invalid parameter to a C runtime function raise no exception: the C runtime ends the process with 0xc0000409 and the log stops without a FATAL line. A SIGABRT handler and an invalid-parameter handler now send both to the crash hook with the host return addresses in totk.exe, and the report lists them as totk+offset frames after the guest registers. Checked with win32.c in a test program: assert, abort and fclose(NULL) each give one report whose innermost frame is the failing call. lifted_function no longer names the nearest lifted function for an address above the lifted code, so a host frame of the runtime is not reported as game code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>