From f87cc85cd3b616c4c6aa8c4bde317e8450c7fa41 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Aug 2021 09:26:22 +0200 Subject: [PATCH] LibDebug: Make single-stepping work for x86_64 --- Userland/Libraries/LibDebug/DebugSession.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Userland/Libraries/LibDebug/DebugSession.cpp b/Userland/Libraries/LibDebug/DebugSession.cpp index a66fd3cc42..bae599dc76 100644 --- a/Userland/Libraries/LibDebug/DebugSession.cpp +++ b/Userland/Libraries/LibDebug/DebugSession.cpp @@ -345,11 +345,7 @@ void* DebugSession::single_step() regs.rflags &= ~(TRAP_FLAG); #endif set_registers(regs); -#if ARCH(I386) - return (void*)regs.eip; -#else - TODO(); -#endif + return (void*)regs.ip(); } void DebugSession::detach()