summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDebug/StackFrameUtils.h
blob: 6f4027b1e57154c69546f8f4bc2cc31972918276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2020, Itamar S. <itamar8910@gmail.com>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Optional.h>
#include <AK/Types.h>

#include "LibDebug/DebugSession.h"

namespace Debug::StackFrameUtils {

struct StackFrameInfo {
    FlatPtr return_address;
    FlatPtr next_ebp;
};

Optional<StackFrameInfo> get_info(const DebugSession&, FlatPtr current_ebp);

}