mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
26 lines
469 B
C++
26 lines
469 B
C++
#pragma once
|
|
#include <types.h>
|
|
|
|
namespace SymbolResolver
|
|
{
|
|
class Symbols
|
|
{
|
|
private:
|
|
struct SymbolTable
|
|
{
|
|
uintptr_t Address;
|
|
char *FunctionName;
|
|
};
|
|
|
|
SymbolTable SymTable[0x10000];
|
|
uintptr_t TotalEntries = 0;
|
|
|
|
public:
|
|
Symbols(uintptr_t ImageAddress);
|
|
~Symbols();
|
|
const char *GetSymbolFromAddress(uintptr_t Address);
|
|
};
|
|
}
|
|
|
|
extern SymbolResolver::Symbols *SymTbl;
|