From 49bf55f5c60d54f34de7450aeb6fcb9129ca250f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 25 Feb 2025 18:12:25 +1100 Subject: [PATCH] Log a runtime address to assist with investigating crashes --- src/Platform_Posix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Platform_Posix.c b/src/Platform_Posix.c index 065927a45..7c07f0dfa 100644 --- a/src/Platform_Posix.c +++ b/src/Platform_Posix.c @@ -1324,6 +1324,10 @@ static void Platform_InitPosix(void) { sigaction(SIGCHLD, &sa, NULL); /* So writing to closed socket doesn't raise SIGPIPE */ sigaction(SIGPIPE, &sa, NULL); + + /* Log runtime address to ease investigating crashes */ + cc_uintptr addr = (cc_uintptr)Process_Exit; + Platform_Log1("Process_Exit addr: %x", &addr); } void Platform_Free(void) { }