1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

LibDebug: Move everything into the "Debug" namespace

This commit is contained in:
Luke 2020-08-25 04:33:07 +01:00 committed by Andreas Kling
parent b58ca7cf3d
commit 694b86a4bf
Notes: sideshowbarker 2024-07-19 03:11:50 +09:00
31 changed files with 115 additions and 85 deletions

View file

@ -26,7 +26,8 @@
#include "StackFrameUtils.h"
namespace StackFrameUtils {
namespace Debug::StackFrameUtils {
Optional<StackFrameInfo> get_info(const DebugSession& session, FlatPtr current_ebp)
{
auto return_address = session.peek(reinterpret_cast<u32*>(current_ebp + sizeof(FlatPtr)));
@ -37,4 +38,5 @@ Optional<StackFrameInfo> get_info(const DebugSession& session, FlatPtr current_e
StackFrameInfo info = { return_address.value(), next_ebp.value() };
return info;
}
}