Serenity Operating System
1/*
2 * Copyright (c) 2020, Itamar S. <itamar8910@gmail.com>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <AK/Optional.h>
10#include <AK/Types.h>
11#include <LibDebug/DebugSession.h>
12
13namespace Debug::StackFrameUtils {
14
15struct StackFrameInfo {
16 FlatPtr return_address;
17 FlatPtr next_ebp;
18};
19
20Optional<StackFrameInfo> get_info(ProcessInspector const&, FlatPtr current_ebp);
21
22}