summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDebug
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-02 00:00:52 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-03 08:42:39 +0200
commitb613817bcaada76f75289129e4987eafdaff6d87 (patch)
tree51978a2c44f29e0b730773e83d3eb368dd4a597e /Userland/Libraries/LibDebug
parentfdbe66a7b4b3fec0beba0eac8b78bf29841a5e9c (diff)
downloadserenity-b613817bcaada76f75289129e4987eafdaff6d87.zip
Userland: Fix 64-bit portability issues
Diffstat (limited to 'Userland/Libraries/LibDebug')
-rw-r--r--Userland/Libraries/LibDebug/DebugSession.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDebug/DebugSession.h b/Userland/Libraries/LibDebug/DebugSession.h
index dac76d5387..2e99f7b843 100644
--- a/Userland/Libraries/LibDebug/DebugSession.h
+++ b/Userland/Libraries/LibDebug/DebugSession.h
@@ -259,7 +259,7 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
Optional<BreakPoint> current_breakpoint;
if (state == State::FreeRun || state == State::Syscall) {
- current_breakpoint = m_breakpoints.get((void*)((u32)regs.eip - 1));
+ current_breakpoint = m_breakpoints.get((void*)((uintptr_t)regs.eip - 1));
if (current_breakpoint.has_value())
state = State::FreeRun;
} else {