diff --git a/common/Exceptions.cpp b/common/Exceptions.cpp index 67df17be42..b2fd9a0050 100644 --- a/common/Exceptions.cpp +++ b/common/Exceptions.cpp @@ -31,18 +31,6 @@ #include #endif -// Because wxTrap isn't available on Linux builds of wxWidgets (non-Debug, typically) -void pxTrap() -{ -#if defined(_WIN32) - __debugbreak(); -#elif defined(__UNIX__) - raise(SIGTRAP); -#else - abort(); -#endif -} - static std::mutex s_assertion_failed_mutex; static inline void FreezeThreads(void** handle) diff --git a/common/Exceptions.h b/common/Exceptions.h index 580c41e6eb..34ef3bf4d8 100644 --- a/common/Exceptions.h +++ b/common/Exceptions.h @@ -20,9 +20,6 @@ #include "common/Assertions.h" #include "common/Pcsx2Defs.h" -// Because wxTrap isn't available on Linux builds of wxWidgets (non-Debug, typically) -void pxTrap(); - namespace Exception { class BaseException; diff --git a/common/Linux/LnxHostSys.cpp b/common/Linux/LnxHostSys.cpp index 9be82957e1..e760a37cc1 100644 --- a/common/Linux/LnxHostSys.cpp +++ b/common/Linux/LnxHostSys.cpp @@ -95,13 +95,6 @@ static void SysPageFaultSignalFilter(int signal, siginfo_t* siginfo, void* ctx) std::fprintf(stderr, "Unhandled page fault @ 0x%08x", siginfo->si_addr); pxFailRel("Unhandled page fault"); - - // Bad mojo! Completely invalid address. - // Instigate a trap if we're in a debugger, and if not then do a SIGKILL. - - pxTrap(); - if (!IsDebugBuild) - raise(SIGKILL); } void _platform_InstallSignalHandler()