diff options
author | Itamar <itamar8910@gmail.com> | 2021-11-19 16:13:07 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-20 21:22:24 +0000 |
commit | 94d68583fb6daa25ad7d912f487e006e5f161718 (patch) | |
tree | 775106fc842e814f6ce82ab3e2e00894c5ea896d /Userland/Libraries | |
parent | 7950f5cb51549dc304e51616597b96dc4c273b51 (diff) | |
download | serenity-94d68583fb6daa25ad7d912f487e006e5f161718.zip |
HackStudio: Use ProcessInspector instead of DebugSession where possible
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); } |