add Symbol class header
This commit is contained in:
parent
c242b8ad1c
commit
c436f755c9
18
src/symbol.hpp
Normal file
18
src/symbol.hpp
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user