GDB (xrefs)
|
Go to the source code of this file.
Classes | |
struct | pending_stabs |
struct | header_file |
Macros | |
#define | HASHSIZE |
#define | next_symbol_text(objfile) (*next_symbol_text_func)(objfile) |
#define | HEADER_FILES(OBJFILE) (DBX_SYMFILE_INFO (OBJFILE)->header_files) |
#define | N_HEADER_FILES(OBJFILE) (DBX_SYMFILE_INFO (OBJFILE)->n_header_files) |
#define | N_ALLOCATED_HEADER_FILES(OBJFILE) (DBX_SYMFILE_INFO (OBJFILE)->n_allocated_header_files) |
Functions | |
int | hashname (const char *name) |
void | common_block_start (const char *, struct objfile *) |
void | common_block_end (struct objfile *) |
void | cleanup_undefined_stabs_types (struct objfile *) |
long | read_number (char **, int) |
struct symbol * | define_symbol (CORE_ADDR, const char *, int, int, struct objfile *) |
void | stabsread_init (void) |
void | stabsread_new_init (void) |
void | start_stabs (void) |
void | end_stabs (void) |
void | finish_global_stabs (struct objfile *objfile) |
legacy_psymtab * | dbx_end_psymtab (struct objfile *objfile, psymtab_storage *partial_symtabs, legacy_psymtab *pst, const char **include_list, int num_includes, int capping_symbol_offset, CORE_ADDR capping_text, legacy_psymtab **dependency_list, int number_dependencies, int textlow_not_set) |
void | process_one_symbol (int, int, CORE_ADDR, const char *, const section_offsets &, struct objfile *, enum language) |
void | elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect, file_ptr stabstroffset, unsigned int stabstrsize) |
void | coffstab_build_psymtabs (struct objfile *objfile, CORE_ADDR textaddr, unsigned int textsize, const std::vector< asection * > &stabs, file_ptr stabstroffset, unsigned int stabstrsize) |
void | stabsect_build_psymtabs (struct objfile *objfile, char *stab_name, char *stabstr_name, char *text_name) |
int | symbol_reference_defined (const char **) |
void | ref_add (int, struct symbol *, const char *, CORE_ADDR) |
struct symbol * | ref_search (int) |
void | free_header_files (void) |
void | init_header_files (void) |
void | scan_file_globals (struct objfile *objfile) |
Variables | |
unsigned int | symnum |
const char *(* | next_symbol_text_func )(struct objfile *) |
unsigned char | processing_gcc_compilation |
int | within_function |
struct symbol * | global_sym_chain [HASHSIZE] |
struct pending_stabs * | global_stabs |
int | previous_stab_code |
int * | this_object_header_files |
int | n_this_object_header_files |
int | n_allocated_this_object_header_files |
#define HASHSIZE |
Definition at line 29 of file stabsread.h.
#define HEADER_FILES | ( | OBJFILE | ) | (DBX_SYMFILE_INFO (OBJFILE)->header_files) |
Definition at line 128 of file stabsread.h.
#define N_ALLOCATED_HEADER_FILES | ( | OBJFILE | ) | (DBX_SYMFILE_INFO (OBJFILE)->n_allocated_header_files) |
Definition at line 134 of file stabsread.h.
#define N_HEADER_FILES | ( | OBJFILE | ) | (DBX_SYMFILE_INFO (OBJFILE)->n_header_files) |
Definition at line 131 of file stabsread.h.
#define next_symbol_text | ( | objfile | ) | (*next_symbol_text_func)(objfile) |
Definition at line 39 of file stabsread.h.
void cleanup_undefined_stabs_types | ( | struct objfile * | objfile | ) |
Definition at line 4506 of file stabsread.c.
References cleanup_undefined_types_1(), and cleanup_undefined_types_noname().
Referenced by buildsym_compunit::end_compunit_symtab_get_static_block().
void coffstab_build_psymtabs | ( | struct objfile * | objfile, |
CORE_ADDR | textaddr, | ||
unsigned int | textsize, | ||
const std::vector< asection * > & | stabs, | ||
file_ptr | stabstroffset, | ||
unsigned int | stabstrsize | ||
) |
Definition at line 2941 of file dbxread.c.
References COFF_STABS_SYMBOL_SIZE, dbx_objfile_data_key, DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMBOL_SIZE, DBX_SYMCOUNT, dbx_symfile_read(), DBX_SYMTAB_OFFSET, DBX_TEXT_ADDR, DBX_TEXT_SIZE, free_header_files(), init_header_files(), name, objfile::obfd, objfile::objfile_obstack, OBJSTAT, perror_with_name(), processing_acc_compilation, sect_idx, SEEK_SET, stabsread_new_init(), symbuf_left, symbuf_read, and symbuf_sections.
Referenced by coff_symfile_read().
void common_block_end | ( | struct objfile * | objfile | ) |
Definition at line 4249 of file stabsread.c.
References add_symbol_to_list(), common_block, common_block_i, common_block_name, complaint, get_local_symbols(), global_sym_chain, hashname(), general_symbol_info::linkage_name(), LOC_BLOCK, pending::next, pending::nsyms, objfile::objfile_obstack, symbol::set_aclass_index(), general_symbol_info::set_linkage_name(), symbol::set_type(), symbol::set_value_chain(), and pending::symbol.
Referenced by process_one_symbol(), and process_xcoff_symbol().
void common_block_start | ( | const char * | name, |
struct objfile * | objfile | ||
) |
Definition at line 4235 of file stabsread.c.
References common_block_i, common_block_name, complaint, get_local_symbols(), name, and objfile::objfile_obstack.
Referenced by process_one_symbol(), and process_xcoff_symbol().
legacy_psymtab * dbx_end_psymtab | ( | struct objfile * | objfile, |
psymtab_storage * | partial_symtabs, | ||
legacy_psymtab * | pst, | ||
const char ** | include_list, | ||
int | num_includes, | ||
int | capping_symbol_offset, | ||
CORE_ADDR | capping_text, | ||
legacy_psymtab ** | dependency_list, | ||
int | number_dependencies, | ||
int | textlow_not_set | ||
) |
Definition at line 1983 of file dbxread.c.
References psymtab_storage::allocate_dependencies(), objfile::arch(), partial_symtab::dependencies, psymtab_storage::discard_psymtab(), partial_symtab::empty(), partial_symtab::end(), partial_symtab::filename, gdbarch_sofun_address_maybe_missing(), has_line_numbers, last_function_name, LDSYMLEN, LDSYMOFF, legacy_psymtab::legacy_expand_psymtab, legacy_psymtab::legacy_read_symtab, lookup_minimal_symbol(), bound_minimal_symbol::minsym, partial_symtab::number_of_dependencies, objfile::objfile_obstack, objfile::per_bfd, psymtab_storage::range(), partial_symtab::raw_text_high(), partial_symtab::raw_text_low(), legacy_psymtab::read_symtab_private, partial_symtab::set_text_high(), partial_symtab::set_text_low(), minimal_symbol::size(), partial_symtab::text_high_valid, and minimal_symbol::value_raw_address().
Referenced by parse_partial_symbols(), and read_dbx_symtab().
struct symbol * define_symbol | ( | CORE_ADDR | valu, |
const char * | string, | ||
int | desc, | ||
int | type, | ||
struct objfile * | objfile | ||
) |
Definition at line 649 of file stabsread.c.
References symbol::aclass(), add_symbol_to_list(), objfile::arch(), objfile_type::builtin_double, objfile_type::builtin_int, c_canonicalize_name(), type::code(), complaint, general_symbol_info::compute_and_set_names(), cp_canonicalize_string(), cp_scan_for_anonymous_namespaces(), create_array_type(), create_static_range_type(), current_symbol, error_type(), type::field(), find_name_end(), gdbarch_believe_pcc_promotion(), gdbarch_byte_order(), gdbarch_int_bit(), gdbarch_stabs_argument_has_addr(), get_buildsym_compunit(), get_current_subfile(), get_file_symbols(), get_global_symbols(), get_local_symbols(), global_sym_chain, hashname(), symbol::is_argument(), is_cplus_marker(), type::is_unsigned(), subfile::language, general_symbol_info::language(), language_ada, language_c, language_cplus, language_pascal, type::length(), general_symbol_info::linkage_name(), LOC_ARG, LOC_BLOCK, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, lookup_function_type(), lookup_pointer_type(), name, type::name(), pending::nsyms, objfile::objfile_obstack, objfile::per_bfd, processing_gcc_compilation, read_type(), symbol::set_aclass_index(), symbol::set_domain(), type::set_fields(), symbol::set_is_argument(), type::set_is_prototyped(), general_symbol_info::set_language(), symbol::set_line(), general_symbol_info::set_linkage_name(), field::set_name(), type::set_name(), type::set_num_fields(), field::set_type(), symbol::set_type(), symbol::set_value_address(), symbol::set_value_bytes(), symbol::set_value_chain(), symbol::set_value_longest(), stab_register_index, stab_regparm_index, STRUCT_DOMAIN, pending::symbol, target_float_from_string(), symbol::type(), TYPE_ALLOC, TYPE_BASECLASS, TYPE_BASECLASS_NAME, TYPE_FIELD_ARTIFICIAL, TYPE_N_BASECLASSES, symbol::value_longest(), VAR_DOMAIN, vtbl_ptr_name, and within_function.
Referenced by process_one_symbol(), process_xcoff_symbol(), and read_xcoff_symtab().
void elfstab_build_psymtabs | ( | struct objfile * | objfile, |
asection * | stabsect, | ||
file_ptr | stabstroffset, | ||
unsigned int | stabstrsize | ||
) |
Definition at line 3030 of file dbxread.c.
References dbx_objfile_data_key, DBX_STAB_SECTION, DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMBOL_SIZE, DBX_SYMCOUNT, dbx_symfile_read(), DBX_SYMTAB_OFFSET, ELF_STABS_SYMBOL_SIZE, find_text_range(), free_header_files(), init_header_files(), name, objfile::obfd, objfile::objfile_obstack, OBJSTAT, perror_with_name(), processing_acc_compilation, SEEK_SET, stabs_data, stabsread_new_init(), symbuf_left, symbuf_read, and symfile_relocate_debug_section().
Referenced by elf_symfile_read().
void end_stabs | ( | void | ) |
Definition at line 4682 of file stabsread.c.
References previous_stab_code, type_vector, type_vector_length, and xfree().
Referenced by mdebug_expand_psymtab(), process_one_symbol(), read_ofile_symtab(), and read_xcoff_symtab().
void finish_global_stabs | ( | struct objfile * | objfile | ) |
Definition at line 4694 of file stabsread.c.
References get_global_symbols(), global_stabs, patch_block_stabs(), and xfree().
Referenced by buildsym_compunit::end_compunit_symtab_get_static_block().
void free_header_files | ( | void | ) |
Definition at line 304 of file dbxread.c.
References n_allocated_this_object_header_files, this_object_header_files, and xfree().
Referenced by coffstab_build_psymtabs(), dbx_symfile_finish(), elfstab_build_psymtabs(), mdebug_build_psymtabs(), and stabsect_build_psymtabs().
int hashname | ( | const char * | name | ) |
Definition at line 4734 of file stabsread.c.
References fast_hash(), HASHSIZE, and name.
Referenced by common_block_end(), define_symbol(), parse_symbol(), patch_opaque_types(), process_coff_symbol(), and scan_file_globals().
void init_header_files | ( | void | ) |
Definition at line 317 of file dbxread.c.
References n_allocated_this_object_header_files, and this_object_header_files.
Referenced by coffstab_build_psymtabs(), dbx_new_init(), elfstab_build_psymtabs(), mdebug_build_psymtabs(), and stabsect_build_psymtabs().
void process_one_symbol | ( | int | , |
int | , | ||
CORE_ADDR | , | ||
const char * | , | ||
const section_offsets & | , | ||
struct objfile * | , | ||
enum | language | ||
) |
long read_number | ( | char ** | , |
int | |||
) |
void ref_add | ( | int | refnum, |
struct symbol * | sym, | ||
const char * | stabs, | ||
CORE_ADDR | value | ||
) |
Definition at line 540 of file stabsread.c.
References MAX_CHUNK_REFS, ref_chunk, REF_CHUNK_SIZE, ref_count, REF_MAP_SIZE, ref_map::stabs, ref_map::sym, ref_map::value, and xrealloc().
Referenced by process_one_symbol().
struct symbol * ref_search | ( | int | refnum | ) |
Definition at line 564 of file stabsread.c.
References ref_count, and ref_map::sym.
Referenced by process_one_symbol().
void scan_file_globals | ( | struct objfile * | objfile | ) |
Definition at line 4515 of file stabsread.c.
References symbol::aclass(), complaint, current_program_space, fix_common_block(), global_sym_chain, hashname(), HASHSIZE, general_symbol_info::linkage_name(), LOC_BLOCK, LOC_STATIC, LOC_UNRESOLVED, mst_file_bss, mst_file_data, mst_file_text, objfile::msymbols(), objfile_name(), general_symbol_info::print_name(), QUIT, symbol::set_aclass_index(), general_symbol_info::set_section_index(), symbol::set_value_address(), symbol::set_value_chain(), program_space::symfile_object_file, symbol::value_address(), and symbol::value_chain().
Referenced by dbx_read_symtab(), mdebug_read_symtab(), and xcoff_read_symtab().
void stabsect_build_psymtabs | ( | struct objfile * | objfile, |
char * | stab_name, | ||
char * | stabstr_name, | ||
char * | text_name | ||
) |
Definition at line 3111 of file dbxread.c.
References dbx_objfile_data_key, DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMBOL_SIZE, DBX_SYMCOUNT, dbx_symfile_read(), DBX_SYMTAB_OFFSET, DBX_TEXT_ADDR, DBX_TEXT_SIZE, free_header_files(), init_header_files(), name, objfile::obfd, objfile::objfile_obstack, OBJSTAT, perror_with_name(), processing_acc_compilation, and stabsread_new_init().
void stabsread_init | ( | void | ) |
Definition at line 4647 of file stabsread.c.
Referenced by dbx_expand_psymtab(), and xcoff_expand_psymtab().
void stabsread_new_init | ( | void | ) |
Definition at line 4656 of file stabsread.c.
References global_sym_chain.
Referenced by coffstab_build_psymtabs(), dbx_new_init(), elfstab_build_psymtabs(), mdebug_build_psymtabs(), mipscoff_new_init(), stabsect_build_psymtabs(), and xcoff_new_init().
void start_stabs | ( | void | ) |
Definition at line 4666 of file stabsread.c.
References common_block_name, global_stabs, n_this_object_header_files, type_vector, type_vector_length, and within_function.
Referenced by process_one_symbol(), and read_xcoff_symtab().
int symbol_reference_defined | ( | const char ** | string | ) |
Definition at line 600 of file stabsread.c.
References process_reference().
Referenced by process_one_symbol().
|
extern |
Definition at line 58 of file stabsread.c.
Referenced by finish_global_stabs(), process_xcoff_symbol(), and start_stabs().
Definition at line 57 of file stabsread.c.
Referenced by common_block_end(), define_symbol(), parse_symbol(), scan_file_globals(), and stabsread_new_init().
|
extern |
Definition at line 62 of file stabsread.c.
Referenced by add_this_object_header_file(), free_header_files(), and init_header_files().
|
extern |
Definition at line 61 of file stabsread.c.
Referenced by add_this_object_header_file(), dbx_lookup_type(), and start_stabs().
Definition at line 54 of file stabsread.c.
Referenced by dbx_read_symtab(), mdebug_read_symtab(), parse_partial_symbols(), read_dbx_symtab(), scan_xcoff_symtab(), and xcoff_read_symtab().
|
extern |
Definition at line 59 of file stabsread.c.
Referenced by end_stabs(), mdebug_expand_psymtab(), and process_one_symbol().
|
extern |
Definition at line 55 of file stabsread.c.
Referenced by _initialize_go32_nat(), define_symbol(), mdebug_expand_psymtab(), parse_partial_symbols(), parse_procedure(), process_one_symbol(), and read_ofile_symtab().
|
extern |
Definition at line 53 of file stabsread.c.
Referenced by add_old_header_file(), coff_read_enum_type(), coff_read_struct_type(), coff_symtab_read(), dbx_lookup_type(), dbx_next_symbol_text(), find_corresponding_bincl_psymtab(), parse_partial_symbols(), process_one_symbol(), read_cpp_abbrev(), read_dbx_symtab(), read_ofile_symtab(), read_one_sym(), read_type(), read_xcoff_symtab(), set_namestring(), and xcoff_next_symbol_text().
|
extern |
Definition at line 60 of file stabsread.c.
Referenced by add_this_object_header_file(), dbx_lookup_type(), free_header_files(), and init_header_files().
|
extern |
Definition at line 56 of file stabsread.c.
Referenced by coff_read_enum_type(), coff_start_compunit_symtab(), coff_symtab_read(), define_symbol(), process_coff_symbol(), process_one_symbol(), process_xcoff_symbol(), read_enum_type(), read_xcoff_symtab(), and start_stabs().