mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 17:53:07 +00:00
71e6744210
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".
16 lines
244 B
C
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 */
|