add Symbol class header

This commit is contained in:
Gabriel Ionita 2025-10-24 11:45:00 +01:00
parent c242b8ad1c
commit c436f755c9
Signed by: gabi
SSH Key Fingerprint: SHA256:mrbYmB/SGtDvT3etRoS6pDrMYWxR0/B5GSF6rR3qhhc

18
src/symbol.hpp Normal file
View File

@ -0,0 +1,18 @@
#ifndef GWATCH_SYMBOL_HPP
#define GWATCH_SYMBOL_HPP
#include <cstdint>
#include <libdwarf.h>
#include <memory>
#include <string>
template <typename T> using ptr = std::unique_ptr<T>;
class Symbol {
public:
bool is_integer_type(Dwarf_Debug dbg, Dwarf_Die die);
Dwarf_Addr get_global_var_addr(Dwarf_Debug dbg, Dwarf_Die die);
void list_global_integer_vars(Dwarf_Debug dbg);
};
#endif