diff options
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibDebug/StackFrameUtils.cpp | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibDebug/StackFrameUtils.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibDebug/StackFrameUtils.cpp b/Userland/Libraries/LibDebug/StackFrameUtils.cpp index 379de82ec8..e5cccff5ab 100644 --- a/Userland/Libraries/LibDebug/StackFrameUtils.cpp +++ b/Userland/Libraries/LibDebug/StackFrameUtils.cpp @@ -8,10 +8,10 @@ namespace Debug::StackFrameUtils { -Optional<StackFrameInfo> get_info(DebugSession const& session, FlatPtr current_ebp) +Optional<StackFrameInfo> get_info(ProcessInspector const& inspector, FlatPtr current_ebp) { - auto return_address = session.peek(reinterpret_cast<u32*>(current_ebp + sizeof(FlatPtr))); - auto next_ebp = session.peek(reinterpret_cast<u32*>(current_ebp)); + auto return_address = inspector.peek(reinterpret_cast<u32*>(current_ebp + sizeof(FlatPtr))); + auto next_ebp = inspector.peek(reinterpret_cast<u32*>(current_ebp)); if (!return_address.has_value() || !next_ebp.has_value()) return {}; diff --git a/Userland/Libraries/LibDebug/StackFrameUtils.h b/Userland/Libraries/LibDebug/StackFrameUtils.h index 3c4ab0804a..2247518780 100644 --- a/Userland/Libraries/LibDebug/StackFrameUtils.h +++ b/Userland/Libraries/LibDebug/StackFrameUtils.h @@ -18,6 +18,6 @@ struct StackFrameInfo { FlatPtr next_ebp; }; -Optional<StackFrameInfo> get_info(DebugSession const&, FlatPtr current_ebp); +Optional<StackFrameInfo> get_info(ProcessInspector const&, FlatPtr current_ebp); } |