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:
parent
b58ca7cf3d
commit
694b86a4bf
Notes:
sideshowbarker
2024-07-19 03:11:50 +09:00
Author: https://github.com/Lubrsi
Commit: 694b86a4bf
Pull-request: https://github.com/SerenityOS/serenity/pull/3290
31 changed files with 115 additions and 85 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue