diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-08-02 09:26:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-02 17:11:47 +0200 |
commit | f87cc85cd3b616c4c6aa8c4bde317e8450c7fa41 (patch) | |
tree | 50dea5e125621240872c68a351033e1a653c7854 /Userland/Libraries/LibDebug | |
parent | 594903742be46c5053f24ad3cb22e3812d318be7 (diff) | |
download | serenity-f87cc85cd3b616c4c6aa8c4bde317e8450c7fa41.zip |
LibDebug: Make single-stepping work for x86_64
Diffstat (limited to 'Userland/Libraries/LibDebug')
-rw-r--r-- | Userland/Libraries/LibDebug/DebugSession.cpp | 6 |
1 files changed, 1 insertions, 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() |