mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
25 lines
584 B
C++
25 lines
584 B
C++
// SPDX-FileCopyrightText: 2002-2026 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
#include "common/Pcsx2Types.h"
|
|
|
|
class DebugInterface;
|
|
|
|
namespace MipsStackWalk {
|
|
struct StackFrame {
|
|
// Beginning of function symbol (may be estimated.)
|
|
u32 entry;
|
|
// Next position within function.
|
|
u32 pc;
|
|
// Value of SP inside this function (assuming no alloca()...)
|
|
u32 sp;
|
|
// Size of stack frame in bytes.
|
|
int stackSize;
|
|
};
|
|
|
|
std::vector<StackFrame> Walk(DebugInterface* cpu, u32 pc, u32 ra, u32 sp, u32 threadEntry, u32 threadStackTop);
|
|
};
|