2025-07-03 12:53:49 +04:00

25 lines
576 B
C++

#pragma once
#include <cstdint>
namespace il2cpp
{
namespace utils
{
struct SourceLocation
{
const char* filePath;
uint32_t lineNumber;
};
class DebugSymbolReader
{
public:
static bool LoadDebugSymbols();
static bool GetSourceLocation(void* nativeInstructionPointer, SourceLocation& sourceLocation);
static bool AddStackFrames(void* nativeInstructionPointer, std::vector<Il2CppStackFrameInfo>* stackFrames);
static bool DebugSymbolsAvailable();
};
} /* namespace utils */
} /* namespace il2cpp */