mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-19 04:58:27 +00:00
37 lines
650 B
C
37 lines
650 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
#include <unordered_map>
|
||
|
#include "../../../types.h"
|
||
|
|
||
|
|
||
|
struct SymbolRecord
|
||
|
{
|
||
|
std::string name;
|
||
|
u64 virtual_address;
|
||
|
};
|
||
|
|
||
|
struct SymbolRes
|
||
|
{
|
||
|
std::string name;
|
||
|
std::string nidName;
|
||
|
std::string library;
|
||
|
u16 library_version;
|
||
|
std::string module;
|
||
|
u08 module_version_major;
|
||
|
u08 module_version_minor;
|
||
|
u32 type;
|
||
|
};
|
||
|
|
||
|
class SymbolsResolver
|
||
|
{
|
||
|
public:
|
||
|
SymbolsResolver() = default;
|
||
|
virtual ~SymbolsResolver() = default;
|
||
|
|
||
|
void AddSymbol(const SymbolRes& s, u64 virtual_addr);
|
||
|
|
||
|
private:
|
||
|
std::vector<SymbolRecord> m_symbols;
|
||
|
};
|