Go to the source code of this file.
Macros | |
#define | SYMBOLBUF_MAX 100 |
Functions | |
int | symbol_nsymbols (struct symbol_context *sc) |
int | get_symbol_addr (struct symbol_context *sc, const char *symbol, uint64_t *addr) |
char * | get_symbol_name_and_n_args (struct symbol_context *sc, uint64_t addr, uint64_t *offset, int *n_argsp) |
char * | get_symbol_name (struct symbol_context *sc, uint64_t addr, uint64_t *offs) |
void | add_symbol_name (struct symbol_context *sc, uint64_t addr, uint64_t len, const char *name, int type, int n_args) |
void | symbol_readfile (struct symbol_context *sc, char *fname) |
int | sym_addr_compare (const void *a, const void *b) |
void | symbol_recalc_sizes (struct symbol_context *sc) |
void | symbol_init (struct symbol_context *sc) |
void add_symbol_name | ( | struct symbol_context * | sc, |
uint64_t | addr, | ||
uint64_t | len, | ||
const char * | name, | ||
int | type, | ||
int | n_args | ||
) |
Definition at line 199 of file symbol.cc.
References symbol::addr, addr, CHECK_ALLOCATION, symbol_context::first_symbol, symbol::len, symbol::n_args, symbol_context::n_symbols, symbol::name, symbol::next, symbol_context::sorted_array, symbol_demangle_cplusplus(), and symbol::type.
Referenced by MACHINE_SETUP(), and symbol_readfile().
int get_symbol_addr | ( | struct symbol_context * | sc, |
const char * | symbol, | ||
uint64_t * | addr | ||
) |
Definition at line 63 of file symbol.cc.
References symbol::addr, symbol_context::first_symbol, symbol_context::n_symbols, symbol::name, symbol::next, and symbol_context::sorted_array.
Referenced by debugger_parse_name().
char* get_symbol_name | ( | struct symbol_context * | sc, |
uint64_t | addr, | ||
uint64_t * | offs | ||
) |
Definition at line 188 of file symbol.cc.
References get_symbol_name_and_n_args().
Referenced by alpha_cpu_disassemble_instr(), alpha_cpu_register_dump(), arm_cpu_disassemble_instr(), arm_cpu_interpret_thumb_SLOW(), arm_cpu_register_dump(), cpu_show_cycles(), m88k_cpu_disassemble_instr(), m88k_cpu_register_dump(), memory_warn_about_unimplemented_addr(), mips_cpu_disassemble_instr(), mips_cpu_exception(), mips_cpu_register_dump(), ppc_cpu_disassemble_instr(), ppc_cpu_register_dump(), sh_cpu_disassemble_instr(), and sh_cpu_register_dump().
char* get_symbol_name_and_n_args | ( | struct symbol_context * | sc, |
uint64_t | addr, | ||
uint64_t * | offset, | ||
int * | n_argsp | ||
) |
Definition at line 110 of file symbol.cc.
References symbol_context::n_symbols.
Referenced by cpu_functioncall_trace(), and get_symbol_name().
int sym_addr_compare | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 341 of file symbol.cc.
References symbol::addr.
Referenced by symbol_recalc_sizes().
void symbol_init | ( | struct symbol_context * | sc | ) |
Definition at line 415 of file symbol.cc.
References symbol_context::first_symbol, symbol_context::n_symbols, and symbol_context::sorted_array.
Referenced by machine_new().
int symbol_nsymbols | ( | struct symbol_context * | sc | ) |
Definition at line 49 of file symbol.cc.
References symbol_context::n_symbols.
void symbol_readfile | ( | struct symbol_context * | sc, |
char * | fname | ||
) |
Definition at line 284 of file symbol.cc.
References add_symbol_name(), addr, debug, f(), symbol::len, symbol_context::n_symbols, strlen(), and symbol::type.
void symbol_recalc_sizes | ( | struct symbol_context * | sc | ) |
Definition at line 362 of file symbol.cc.
References symbol::addr, CHECK_ALLOCATION, symbol_context::first_symbol, symbol::len, symbol_context::n_symbols, symbol::next, symbol_context::sorted_array, and sym_addr_compare().