From 4e8cba2d225cd385bba2512d714d01197dc914b2 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Wed, 14 Jan 2026 14:23:51 +0100 Subject: [PATCH] [Linux] Handle debug symbols with renamed executable GNU debug link expects the file to have the same name as when compiled, same solution as on Windows. --- platform/linuxbsd/crash_handler_linuxbsd.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/linuxbsd/crash_handler_linuxbsd.cpp b/platform/linuxbsd/crash_handler_linuxbsd.cpp index a0b0e59f2a..b85d65ff67 100644 --- a/platform/linuxbsd/crash_handler_linuxbsd.cpp +++ b/platform/linuxbsd/crash_handler_linuxbsd.cpp @@ -31,6 +31,7 @@ #include "crash_handler_linuxbsd.h" #include "core/config/project_settings.h" +#include "core/io/file_access.h" #include "core/object/script_language.h" #include "core/os/main_loop.h" #include "core/os/os.h" @@ -67,6 +68,10 @@ static void handle_crash(int sig) { size_t size = backtrace(bt_buffer, 256); String _execpath = OS::get_singleton()->get_executable_path(); + if (FileAccess::exists(_execpath + ".debugsymbols")) { + _execpath = _execpath + ".debugsymbols"; + } + String msg; if (ProjectSettings::get_singleton()) { msg = GLOBAL_GET("debug/settings/crash_handler/message");