drgn/libdrgn/symbol.h
Omar Sandoval 71e6744210 libdrgn: add symbol table interface
Now that we're not overloading the name "symbol", we can define struct
drgn_symbol as a symbol table entry. For now, this is very minimal: it's
just a name, address, and size. We can then add a way to find the symbol
for a given address, drgn_program_find_symbol(). For now, this is only
supported through the actual ELF symbol tables. However, in the future,
we can probably support adding "symbol finders".
2019-07-30 09:25:34 -07:00

16 lines
244 B
C

// Copyright 2019 - Omar Sandoval
// SPDX-License-Identifier: GPL-3.0+
#ifndef DRGN_SYMBOL_H
#define DRGN_SYMBOL_H
#include <stdint.h>
struct drgn_symbol {
const char *name;
uint64_t address;
uint64_t size;
};
#endif /* DRGN_SYMBOL_H */