From 05e0f349e01472da04f4d05fff75e518fdfc3b27 Mon Sep 17 00:00:00 2001 From: Crementif <26669564+Crementif@users.noreply.github.com> Date: Mon, 20 Feb 2023 00:29:32 +0100 Subject: [PATCH] debugger: Disable Linux read/write breakpoints for now (#669) It seems that there's some differences for some distros so until a proper solution is found, just disable it for now. --- src/Cafe/HW/Espresso/Debugger/GDBBreakpoints.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Cafe/HW/Espresso/Debugger/GDBBreakpoints.h b/src/Cafe/HW/Espresso/Debugger/GDBBreakpoints.h index dc538a4c..b86bd9a6 100644 --- a/src/Cafe/HW/Espresso/Debugger/GDBBreakpoints.h +++ b/src/Cafe/HW/Espresso/Debugger/GDBBreakpoints.h @@ -1,6 +1,6 @@ #include -#if BOOST_OS_LINUX +#if defined(ARCH_X86_64) && BOOST_OS_LINUX && FALSE #include #include #include @@ -189,7 +189,8 @@ public: SetThreadContext(hThread, &ctx); ResumeThread(hThread); } -#elif defined(ARCH_X86_64) && BOOST_OS_LINUX + // todo: port the following code to all unix platforms, they seem to differ quite a bit +#elif defined(ARCH_X86_64) && BOOST_OS_LINUX && FALSE for (auto& hThreadNH : coreinit::OSGetSchedulerThreads()) { pid_t pid = (pid_t)(uintptr_t)hThreadNH; @@ -243,7 +244,7 @@ public: SetThreadContext(hThread, &ctx); ResumeThread(hThread); } -#elif defined(ARCH_X86_64) && BOOST_OS_LINUX +#elif defined(ARCH_X86_64) && BOOST_OS_LINUX && FALSE for (auto& hThreadNH : coreinit::OSGetSchedulerThreads()) { pid_t pid = (pid_t)(uintptr_t)hThreadNH;