GDB (xrefs)
|
#include "minsyms.h"
Public Member Functions | |
minimal_symbol_reader (struct objfile *) | |
~minimal_symbol_reader () | |
void | install () |
struct minimal_symbol * | record_full (gdb::string_view name, bool copy_name, unrelocated_addr address, enum minimal_symbol_type ms_type, int section) |
void | record (const char *name, unrelocated_addr address, enum minimal_symbol_type ms_type) |
void | record_with_info (const char *name, unrelocated_addr address, enum minimal_symbol_type ms_type, int section) |
Private Member Functions | |
DISABLE_COPY_AND_ASSIGN (minimal_symbol_reader) | |
Private Attributes | |
struct objfile * | m_objfile |
struct msym_bunch * | m_msym_bunch |
int | m_msym_bunch_index |
int | m_msym_count |
|
explicit |
minimal_symbol_reader::~minimal_symbol_reader | ( | ) |
Definition at line 1099 of file minsyms.c.
References m_msym_bunch, msym_bunch::next, and xfree().
|
private |
void minimal_symbol_reader::install | ( | ) |
Definition at line 1391 of file minsyms.c.
References build_minimal_symbol_hash_tables(), BUNCH_SIZE, clear_minimal_symbol_hash_tables(), compact_minimal_symbols(), general_symbol_info::compute_and_set_names(), msym_bunch::contents, m_msym_bunch, m_msym_bunch_index, m_msym_count, m_objfile, objfile_per_bfd_storage::minimal_symbol_count, minimal_symbol_is_less_than(), objfile_per_bfd_storage::minsyms_read, msymbol_hash(), objfile_per_bfd_storage::msymbols, msym_bunch::next, objfile_name(), objfile::per_bfd, search_name_hash(), objfile_per_bfd_storage::storage_obstack, symbol_find_demangled_name(), and symtab_create_debug_printf.
Referenced by coff_read_minsyms(), dbx_symfile_read(), elf_read_minimal_symbols(), elfmdebug_build_psymtabs(), macho_symfile_read(), mipscoff_symfile_read(), and xcoff_initial_scan().
void minimal_symbol_reader::record | ( | const char * | name, |
unrelocated_addr | address, | ||
enum minimal_symbol_type | ms_type ) |
Definition at line 1114 of file minsyms.c.
References m_objfile, mst_bss, mst_data, mst_data_gnu_ifunc, mst_file_bss, mst_file_data, mst_file_text, mst_solib_trampoline, mst_text, mst_text_gnu_ifunc, name, record_with_info(), SECT_OFF_BSS, SECT_OFF_DATA, and SECT_OFF_TEXT.
Referenced by read_alphacoff_dynamic_symtab().
struct minimal_symbol * minimal_symbol_reader::record_full | ( | gdb::string_view | name, |
bool | copy_name, | ||
unrelocated_addr | address, | ||
enum minimal_symbol_type | ms_type, | ||
int | section ) |
Definition at line 1173 of file minsyms.c.
References BUNCH_SIZE, msym_bunch::contents, copy_name(), GCC2_COMPILED_FLAG_SYMBOL, GCC_COMPILED_FLAG_SYMBOL, get_symbol_leading_char(), language_unknown, m_msym_bunch, m_msym_bunch_index, m_msym_count, general_symbol_info::m_name, m_objfile, objfile_per_bfd_storage::minsyms_read, mst_file_text, mst_str(), objfile_per_bfd_storage::n_minsyms, name, msym_bunch::next, objfile::obfd, objfile::per_bfd, general_symbol_info::set_language(), general_symbol_info::set_section_index(), minimal_symbol::set_type(), general_symbol_info::set_unrelocated_address(), objfile_per_bfd_storage::storage_obstack, and symtab_create_debug_printf_v.
Referenced by record_minimal_symbol(), record_minimal_symbol(), and record_with_info().
|
inline |
Definition at line 143 of file minsyms.h.
References name, and record_full().
Referenced by add_pe_exported_sym(), add_pe_forwarded_sym(), macho_symtab_add_minsym(), parse_partial_symbols(), record(), record_minimal_symbol(), record_minimal_symbol(), and record_minimal_symbol().
|
private |
Definition at line 159 of file minsyms.h.
Referenced by install(), record_full(), and ~minimal_symbol_reader().
|
private |
Definition at line 163 of file minsyms.h.
Referenced by install(), and record_full().
|
private |
Definition at line 168 of file minsyms.h.
Referenced by install(), and record_full().
|
private |
Definition at line 154 of file minsyms.h.
Referenced by install(), record(), and record_full().