GDB (xrefs)
|
#include "defs.h"
#include "bfd.h"
#include "gdbsupport/gdb_obstack.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "symfile.h"
#include "objfiles.h"
#include "aout/stab_gnu.h"
#include "libaout.h"
#include "aout/aout64.h"
#include "gdb-stabs.h"
#include "buildsym-legacy.h"
#include "complaints.h"
#include "demangle.h"
#include "gdb-demangle.h"
#include "language.h"
#include "target-float.h"
#include "c-lang.h"
#include "cp-abi.h"
#include "cp-support.h"
#include <ctype.h>
#include "stabsread.h"
Go to the source code of this file.
Classes | |
struct | stabs_nextfield |
struct | next_fnfieldlist |
struct | stab_field_info |
struct | nat |
struct | ref_map |
Macros | |
#define | STABS_CONTINUE(pp, objfile) |
#define | INITIAL_TYPE_VECTOR_LENGTH 160 |
#define | VISIBILITY_PRIVATE '0' /* Stabs character for private field */ |
#define | VISIBILITY_PROTECTED '1' /* Stabs character for protected fld */ |
#define | VISIBILITY_PUBLIC '2' /* Stabs character for public field */ |
#define | VISIBILITY_IGNORE '9' /* Optimized out or zero length */ |
#define | MAX_CHUNK_REFS 100 |
#define | REF_CHUNK_SIZE (MAX_CHUNK_REFS * sizeof (struct ref_map)) |
#define | REF_MAP_SIZE(ref_chunk) ((ref_chunk) * REF_CHUNK_SIZE) |
#define | NUMBER_RECOGNIZED 34 |
Functions | |
static void | read_one_struct_field (struct stab_field_info *, const char **, const char *, struct type *, struct objfile *) |
static struct type * | dbx_alloc_type (int[2], struct objfile *) |
static long | read_huge_number (const char **, int, int *, int) |
static struct type * | error_type (const char **, struct objfile *) |
static void | patch_block_stabs (struct pending *, struct pending_stabs *, struct objfile *) |
static int | read_type_number (const char **, int *) |
static struct type * | read_type (const char **, struct objfile *) |
static struct type * | read_range_type (const char **, int[2], int, struct objfile *) |
static struct type * | read_sun_builtin_type (const char **, int[2], struct objfile *) |
static struct type * | read_sun_floating_type (const char **, int[2], struct objfile *) |
static struct type * | read_enum_type (const char **, struct type *, struct objfile *) |
static struct type * | rs6000_builtin_type (int, struct objfile *) |
static int | read_member_functions (struct stab_field_info *, const char **, struct type *, struct objfile *) |
static int | read_struct_fields (struct stab_field_info *, const char **, struct type *, struct objfile *) |
static int | read_baseclasses (struct stab_field_info *, const char **, struct type *, struct objfile *) |
static int | read_tilde_fields (struct stab_field_info *, const char **, struct type *, struct objfile *) |
static int | attach_fn_fields_to_type (struct stab_field_info *, struct type *) |
static int | attach_fields_to_type (struct stab_field_info *, struct type *, struct objfile *) |
static struct type * | read_struct_type (const char **, struct type *, enum type_code, struct objfile *) |
static struct type * | read_array_type (const char **, struct type *, struct objfile *) |
static struct field * | read_args (const char **, int, struct objfile *, int *, int *) |
static void | add_undefined_type (struct type *, int[2]) |
static int | read_cpp_abbrev (struct stab_field_info *, const char **, struct type *, struct objfile *) |
static const char * | find_name_end (const char *name) |
static int | process_reference (const char **string) |
void | stabsread_clear_cache (void) |
static void | invalid_cpp_abbrev_complaint (const char *arg1) |
static void | reg_value_complaint (int regnum, int num_regs, const char *sym) |
static void | stabs_general_complaint (const char *arg1) |
static struct type ** | dbx_lookup_type (int typenums[2], struct objfile *objfile) |
static struct type * | dbx_init_float_type (struct objfile *objfile, int bits) |
void | ref_add (int refnum, struct symbol *sym, const char *stabs, CORE_ADDR value) |
struct symbol * | ref_search (int refnum) |
int | symbol_reference_defined (const char **string) |
static int | stab_reg_to_regnum (struct symbol *sym, struct gdbarch *gdbarch) |
struct symbol * | define_symbol (CORE_ADDR valu, const char *string, int desc, int type, struct objfile *objfile) |
static struct type * | allocate_stub_method (struct type *type) |
static char * | stabs_method_name_from_physname (const char *physname) |
static void | complain_about_struct_wipeout (struct type *type) |
static void | set_length_in_type_chain (struct type *type) |
void | common_block_start (const char *name, struct objfile *objfile) |
void | common_block_end (struct objfile *objfile) |
static void | fix_common_block (struct symbol *sym, CORE_ADDR valu, int section_index) |
static void | add_undefined_type_noname (struct type *type, int typenums[2]) |
static void | add_undefined_type_1 (struct type *type) |
static void | cleanup_undefined_types_noname (struct objfile *objfile) |
static void | cleanup_undefined_types_1 (void) |
void | cleanup_undefined_stabs_types (struct objfile *objfile) |
void | scan_file_globals (struct objfile *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) |
int | hashname (const char *name) |
void | _initialize_stabsread () |
#define INITIAL_TYPE_VECTOR_LENGTH 160 |
Definition at line 235 of file stabsread.c.
Referenced by dbx_lookup_type().
#define MAX_CHUNK_REFS 100 |
Definition at line 514 of file stabsread.c.
Referenced by ref_add().
#define NUMBER_RECOGNIZED 34 |
#define REF_CHUNK_SIZE (MAX_CHUNK_REFS * sizeof (struct ref_map)) |
Definition at line 515 of file stabsread.c.
Referenced by ref_add().
#define REF_MAP_SIZE | ( | ref_chunk | ) | ((ref_chunk) * REF_CHUNK_SIZE) |
Definition at line 516 of file stabsread.c.
Referenced by ref_add().
#define STABS_CONTINUE | ( | pp, | |
objfile ) |
Definition at line 214 of file stabsread.c.
Referenced by read_args(), read_baseclasses(), read_enum_type(), read_member_functions(), read_struct_fields(), and read_tilde_fields().
#define VISIBILITY_IGNORE '9' /* Optimized out or zero length */ |
Definition at line 502 of file stabsread.c.
Referenced by attach_fields_to_type(), and read_one_struct_field().
#define VISIBILITY_PRIVATE '0' /* Stabs character for private field */ |
Definition at line 499 of file stabsread.c.
Referenced by attach_fields_to_type(), read_baseclasses(), read_cpp_abbrev(), and read_member_functions().
#define VISIBILITY_PROTECTED '1' /* Stabs character for protected fld */ |
Definition at line 500 of file stabsread.c.
Referenced by attach_fields_to_type(), read_baseclasses(), and read_member_functions().
#define VISIBILITY_PUBLIC '2' /* Stabs character for public field */ |
Definition at line 501 of file stabsread.c.
Referenced by attach_fields_to_type(), read_baseclasses(), and read_one_struct_field().
void _initialize_stabsread | ( | ) |
Definition at line 4757 of file stabsread.c.
Referenced by initialize_all_files().
|
static |
Definition at line 4389 of file stabsread.c.
References add_undefined_type_1(), add_undefined_type_noname(), and type::name().
Referenced by read_type().
|
static |
Definition at line 4363 of file stabsread.c.
References type, undef_types, undef_types_allocated, undef_types_length, and xrealloc().
Referenced by add_undefined_type().
|
static |
Definition at line 4341 of file stabsread.c.
References noname_undefs, noname_undefs_allocated, noname_undefs_length, type, nat::type, nat::typenums, and xrealloc().
Referenced by add_undefined_type().
Definition at line 1477 of file stabsread.c.
References type_allocator::new_type(), type::set_code(), type::set_is_stub(), type::set_length(), and type::set_target_type().
Referenced by read_type().
|
static |
Definition at line 3267 of file stabsread.c.
References type::alloc_fields(), ALLOCATE_CPLUS_STRUCT_TYPE, B_BYTES, B_TYPE, complaint, type::field(), stabs_nextfield::field, stab_field_info::list, stabs_nextfield::next, scan(), SET_TYPE_FIELD_IGNORE, SET_TYPE_FIELD_PRIVATE, SET_TYPE_FIELD_PROTECTED, TYPE_FIELD_IGNORE_BITS, TYPE_FIELD_PRIVATE_BITS, TYPE_FIELD_PROTECTED_BITS, TYPE_ZALLOC, stabs_nextfield::visibility, VISIBILITY_IGNORE, VISIBILITY_PRIVATE, VISIBILITY_PROTECTED, and VISIBILITY_PUBLIC.
Referenced by read_struct_type().
|
static |
Definition at line 3248 of file stabsread.c.
References next_fnfieldlist::fn_fieldlist, stab_field_info::fnlist, next_fnfieldlist::next, TYPE_FN_FIELDLISTS, and TYPE_NFN_FIELDS.
Referenced by read_struct_type().
void cleanup_undefined_stabs_types | ( | struct objfile * | objfile | ) |
Definition at line 4519 of file stabsread.c.
References cleanup_undefined_types_1(), and cleanup_undefined_types_noname().
Referenced by buildsym_compunit::end_compunit_symtab_get_static_block().
|
static |
Definition at line 4435 of file stabsread.c.
References symbol::aclass(), type::code(), complaint, symbol::domain(), get_file_symbols(), type::instance_flags(), general_symbol_info::linkage_name(), LOC_TYPEDEF, pending::next, pending::nsyms, replace_type(), STRUCT_DOMAIN, pending::symbol, type, symbol::type(), undef_types, and undef_types_length.
Referenced by cleanup_undefined_stabs_types().
|
static |
Definition at line 4400 of file stabsread.c.
References type::code(), dbx_lookup_type(), noname_undefs, noname_undefs_length, replace_type(), type::set_instance_flags(), type, nat::type, TYPE_CODE_UNDEF, and nat::typenums.
Referenced by cleanup_undefined_stabs_types().
void common_block_end | ( | struct objfile * | objfile | ) |
Definition at line 4259 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, objfile::objfile_obstack, symbol::set_aclass_index(), general_symbol_info::set_linkage_name(), symbol::set_type(), and symbol::set_value_chain().
Referenced by process_one_symbol(), and process_xcoff_symbol().
void common_block_start | ( | const char * | name, |
struct objfile * | objfile ) |
Definition at line 4245 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().
|
static |
Definition at line 3350 of file stabsread.c.
References type::code(), complaint, name, and type::name().
Referenced by read_struct_type(), and set_length_in_type_chain().
Definition at line 343 of file stabsread.c.
References dbx_lookup_type(), get_current_subfile(), and type_allocator::new_type().
Referenced by read_type().
Definition at line 370 of file stabsread.c.
References objfile::arch(), bits, gdbarch_floatformat_for_type(), get_current_subfile(), init_float_type(), type_allocator::new_type(), and type.
Referenced by read_range_type(), and read_sun_floating_type().
Definition at line 246 of file stabsread.c.
References builtin_type::builtin_error, builtin_type(), complaint, f(), HEADER_FILES, INITIAL_TYPE_VECTOR_LENGTH, type::length(), N_HEADER_FILES, n_this_object_header_files, rs6000_builtin_type(), symnum, this_object_header_files, type_vector, type_vector_length, and xrealloc().
Referenced by cleanup_undefined_types_noname(), dbx_alloc_type(), read_range_type(), and read_type().
struct symbol * define_symbol | ( | CORE_ADDR | valu, |
const char * | string, | ||
int | desc, | ||
int | type, | ||
struct objfile * | objfile ) |
Definition at line 650 of file stabsread.c.
References symbol::aclass(), add_symbol_to_list(), type::alloc_fields(), objfile::arch(), builtin_type::builtin_double, builtin_type::builtin_int, builtin_type(), 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(), symbol::set_is_argument(), field::set_is_artificial(), 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_BASECLASS, TYPE_BASECLASS_NAME, 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 end_stabs | ( | void | ) |
Definition at line 4696 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().
Definition at line 1445 of file stabsread.c.
References builtin_type::builtin_error, builtin_type(), complaint, and next_symbol_text.
Referenced by define_symbol(), gdbpy_err_fetch::gdbpy_err_fetch(), read_array_type(), read_enum_type(), read_range_type(), read_struct_type(), read_sun_builtin_type(), read_sun_floating_type(), and read_type().
|
static |
void finish_global_stabs | ( | struct objfile * | objfile | ) |
Definition at line 4708 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().
|
static |
Definition at line 4318 of file stabsread.c.
References pending::next, and symbol::type().
Referenced by scan_file_globals().
int hashname | ( | const char * | name | ) |
Definition at line 4748 of file stabsread.c.
References HASHSIZE, and name.
Referenced by common_block_end(), define_symbol(), parse_symbol(), patch_opaque_types(), process_coff_symbol(), and scan_file_globals().
|
static |
|
static |
Definition at line 390 of file stabsread.c.
References add_symbol_to_list(), pending_stabs::count, find_symbol_in_list(), get_global_symbols(), LOC_OPTIMIZED_OUT, lookup_function_type(), name, objfile::objfile_obstack, read_type(), symbol::set_aclass_index(), symbol::set_domain(), general_symbol_info::set_linkage_name(), symbol::set_type(), pending_stabs::stab, and VAR_DOMAIN.
Referenced by finish_global_stabs().
|
static |
Definition at line 576 of file stabsread.c.
Referenced by symbol_reference_defined().
|
static |
Definition at line 4181 of file stabsread.c.
References code, complaint, read_type(), set_type(), and STABS_CONTINUE.
Referenced by read_type().
|
static |
Definition at line 3491 of file stabsread.c.
References create_array_type(), create_static_range_type(), error_type(), get_current_subfile(), type::index_type(), read_huge_number(), read_type(), type_allocator::SMASH, and type.
Referenced by read_type().
|
static |
Definition at line 3044 of file stabsread.c.
References ALLOCATE_CPLUS_STRUCT_TYPE, B_BYTES, B_TYPE, complaint, stabs_nextfield::field, stab_field_info::list, type::name(), stabs_nextfield::next, stab_field_info::obstack, read_huge_number(), read_type(), field::set_bitsize(), field::set_loc_bitpos(), field::set_name(), field::set_type(), SET_TYPE_FIELD_VIRTUAL, STABS_CONTINUE, field::type(), TYPE_FIELD_VIRTUAL_BITS, TYPE_N_BASECLASSES, TYPE_ZALLOC, stabs_nextfield::visibility, VISIBILITY_PRIVATE, VISIBILITY_PROTECTED, and VISIBILITY_PUBLIC.
Referenced by read_struct_type().
|
static |
Definition at line 2712 of file stabsread.c.
References complaint, stabs_nextfield::field, invalid_cpp_abbrev_complaint(), stab_field_info::list, name, type::name(), objfile::objfile_obstack, read_huge_number(), read_type(), field::set_bitsize(), field::set_loc_bitpos(), field::set_name(), field::set_type(), symnum, vb_name, stabs_nextfield::visibility, VISIBILITY_PRIVATE, and vptr_name.
Referenced by read_struct_fields().
|
static |
Definition at line 3556 of file stabsread.c.
References add_symbol_to_list(), type::alloc_fields(), objfile::arch(), error_type(), type::field(), gdbarch_int_bit(), get_current_subfile(), get_file_symbols(), get_local_symbols(), subfile::language, general_symbol_info::linkage_name(), LOC_CONST, name, pending::next, pending::nsyms, objfile::objfile_obstack, read_huge_number(), symbol::set_aclass_index(), field::set_bitsize(), type::set_code(), symbol::set_domain(), type::set_is_stub(), type::set_is_unsigned(), general_symbol_info::set_language(), type::set_length(), set_length_in_type_chain(), general_symbol_info::set_linkage_name(), field::set_loc_enumval(), field::set_name(), symbol::set_type(), symbol::set_value_longest(), STABS_CONTINUE, pending::symbol, type, symbol::value_longest(), VAR_DOMAIN, and within_function.
Referenced by read_type().
|
static |
Definition at line 3806 of file stabsread.c.
References bits.
Referenced by read_array_type(), read_baseclasses(), read_cpp_abbrev(), read_enum_type(), read_member_functions(), read_one_struct_field(), read_range_type(), read_struct_type(), read_sun_builtin_type(), read_sun_floating_type(), and read_type_number().
|
static |
Definition at line 2253 of file stabsread.c.
References ALLOCATE_CPLUS_STRUCT_TYPE, complaint, next_fnfieldlist::fn_fieldlist, fn_fieldlist::fn_fields, stab_field_info::fnlist, is_cplus_marker(), is_destructor_name(), type::length(), fn_fieldlist::length, fn_fieldlist::name, next_fnfieldlist::next, objfile::objfile_obstack, stab_field_info::obstack, read_huge_number(), read_type(), set_type_self_type(), STABS_CONTINUE, stabs_method_name_from_physname(), strcmp_iw(), TYPE_FN_FIELDLISTS, TYPE_NFN_FIELDS, TYPE_SELF_TYPE, TYPE_ZALLOC, VISIBILITY_PRIVATE, VISIBILITY_PROTECTED, VOFFSET_STATIC, and xfree().
Referenced by read_struct_type().
|
static |
Definition at line 2806 of file stabsread.c.
References objfile::arch(), field::bitsize(), check_typedef(), type::code(), stabs_nextfield::field, gdbarch_int_bit(), type::length(), stab_field_info::list, field::loc_bitpos(), objfile::objfile_obstack, read_huge_number(), read_type(), field::set_bitsize(), field::set_loc_bitpos(), field::set_loc_physname(), field::set_name(), field::set_type(), stabs_general_complaint(), field::type(), stabs_nextfield::visibility, VISIBILITY_IGNORE, and VISIBILITY_PUBLIC.
Referenced by read_struct_fields().
|
static |
Definition at line 3971 of file stabsread.c.
References objfile::arch(), bits, builtin_type::builtin_int, builtin_type(), complaint, create_static_range_type(), dbx_init_float_type(), dbx_lookup_type(), error_type(), gdbarch_int_bit(), gdbarch_long_long_bit(), get_current_subfile(), type::index_type(), init_complex_type(), init_integer_type(), n2, type_allocator::new_type(), read_huge_number(), read_type(), read_type_number(), type::set_has_no_signedness(), and type.
Referenced by read_type().
|
static |
Definition at line 2949 of file stabsread.c.
References is_cplus_marker(), stab_field_info::list, stabs_nextfield::next, stab_field_info::obstack, read_cpp_abbrev(), read_one_struct_field(), and STABS_CONTINUE.
Referenced by read_struct_type().
|
static |
Definition at line 3427 of file stabsread.c.
References attach_fields_to_type(), attach_fn_fields_to_type(), type::code(), complain_about_struct_wipeout(), error_type(), INIT_CPLUS_SPECIFIC, type::is_stub(), read_baseclasses(), read_huge_number(), read_member_functions(), read_struct_fields(), read_tilde_fields(), type::set_code(), type::set_is_stub(), type::set_length(), set_length_in_type_chain(), type, and TYPE_CODE_UNDEF.
Referenced by read_type().
|
static |
Definition at line 3679 of file stabsread.c.
References error_type(), get_current_subfile(), init_boolean_type(), init_integer_type(), type_allocator::new_type(), read_huge_number(), type::set_is_unsigned(), and type.
Referenced by read_type().
|
static |
Definition at line 3757 of file stabsread.c.
References dbx_init_float_type(), error_type(), init_complex_type(), and read_huge_number().
Referenced by read_type().
|
static |
Definition at line 3165 of file stabsread.c.
References complaint, type::field(), is_cplus_marker(), name, field::name(), type::name(), type::num_fields(), read_type(), set_type_vptr_basetype(), set_type_vptr_fieldno(), STABS_CONTINUE, TYPE_N_BASECLASSES, TYPE_VPTR_FIELDNO, and vptr_name.
Referenced by read_struct_type().
Definition at line 1497 of file stabsread.c.
References symbol::aclass(), add_undefined_type(), allocate_stub_method(), c_canonicalize_name(), code, type::code(), complaint, cp_canonicalize_string(), create_set_type(), dbx_alloc_type(), dbx_lookup_type(), symbol::domain(), error_type(), get_current_subfile(), get_file_symbols(), INIT_CPLUS_SPECIFIC, type::is_vector(), language_c, language_cplus, general_symbol_info::linkage_name(), LOC_TYPEDEF, make_cv_type(), make_function_type(), make_pointer_type(), make_reference_type(), make_vector_type(), name, pending::next, pending::nsyms, objfile::objfile_obstack, read_args(), read_array_type(), read_enum_type(), read_range_type(), read_struct_type(), read_sun_builtin_type(), read_sun_floating_type(), read_type(), read_type_number(), replace_type(), type::set_code(), type::set_is_stub(), type::set_length(), type::set_name(), type::set_target_is_stub(), type::set_target_type(), smash_to_memberptr_type(), smash_to_method_type(), STRUCT_DOMAIN, pending::symbol, symnum, type, symbol::type(), TYPE_CODE_UNDEF, TYPE_CONST, and TYPE_VOLATILE.
Referenced by define_symbol(), patch_block_stabs(), read_args(), read_array_type(), read_baseclasses(), read_cpp_abbrev(), read_member_functions(), read_one_struct_field(), read_range_type(), read_tilde_fields(), and read_type().
|
static |
Definition at line 474 of file stabsread.c.
References read_huge_number().
Referenced by read_range_type(), and read_type().
void ref_add | ( | int | refnum, |
struct symbol * | sym, | ||
const char * | stabs, | ||
CORE_ADDR | value ) |
Definition at line 541 of file stabsread.c.
References MAX_CHUNK_REFS, ref_chunk, REF_CHUNK_SIZE, ref_count, REF_MAP_SIZE, ref_map::stabs, ref_map::sym, value, ref_map::value, and xrealloc().
Referenced by process_one_symbol().
struct symbol * ref_search | ( | int | refnum | ) |
Definition at line 565 of file stabsread.c.
References ref_count, and ref_map::sym.
Referenced by process_one_symbol().
|
static |
Definition at line 180 of file stabsread.c.
References complaint, and regnum.
Referenced by stab_reg_to_regnum().
Definition at line 2053 of file stabsread.c.
References builtin_type::builtin_error, builtin_type(), complaint, floatformats_ieee_double, floatformats_ieee_single, registry< T >::get(), get_current_subfile(), init_boolean_type(), init_character_type(), init_complex_type(), init_float_type(), init_integer_type(), type_allocator::new_type(), NUMBER_RECOGNIZED, objfile::objfile_obstack, rs6000_builtin_type(), rs6000_builtin_type_data, registry< T >::set(), and type::set_has_no_signedness().
Referenced by dbx_lookup_type(), and rs6000_builtin_type().
void scan_file_globals | ( | struct objfile * | objfile | ) |
Definition at line 4528 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::objfile(), 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().
|
static |
Definition at line 3398 of file stabsread.c.
References complain_about_struct_wipeout(), type::length(), type::set_length(), and TYPE_CHAIN.
Referenced by read_enum_type(), and read_struct_type().
Definition at line 625 of file stabsread.c.
References gdbarch_num_cooked_regs(), gdbarch_sp_regnum(), gdbarch_stab_reg_to_regnum(), general_symbol_info::print_name(), reg_value_complaint(), and symbol::value_longest().
Referenced by set_gdbarch_stab_reg_to_regnum().
|
static |
Definition at line 187 of file stabsread.c.
References complaint.
Referenced by read_one_struct_field().
|
static |
Definition at line 2222 of file stabsread.c.
References complaint, and method_name_from_physname().
Referenced by read_member_functions().
void stabsread_clear_cache | ( | void | ) |
Definition at line 530 of file stabsread.c.
References ref_chunk, and ref_count.
Referenced by coff_symfile_finish().
void stabsread_init | ( | void | ) |
Definition at line 4661 of file stabsread.c.
Referenced by dbx_expand_psymtab(), and xcoff_expand_psymtab().
void stabsread_new_init | ( | void | ) |
Definition at line 4670 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 4680 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 601 of file stabsread.c.
References process_reference().
Referenced by process_one_symbol().
|
static |
Definition at line 4233 of file stabsread.c.
Referenced by common_block_end(), and read_common_block().
|
static |
Definition at line 4234 of file stabsread.c.
Referenced by common_block_end(), and common_block_start().
|
static |
Definition at line 4239 of file stabsread.c.
Referenced by common_block_end(), common_block_start(), and start_stabs().
|
static |
Definition at line 197 of file stabsread.c.
Referenced by define_symbol().
struct pending_stabs* global_stabs |
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().
int n_allocated_this_object_header_files |
Definition at line 62 of file stabsread.c.
Referenced by add_this_object_header_file(), free_header_files(), and init_header_files().
int n_this_object_header_files |
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().
|
static |
Definition at line 209 of file stabsread.c.
Referenced by add_undefined_type_noname(), and cleanup_undefined_types_noname().
|
static |
Definition at line 210 of file stabsread.c.
Referenced by add_undefined_type_noname().
|
static |
Definition at line 211 of file stabsread.c.
Referenced by add_undefined_type_noname(), and cleanup_undefined_types_noname().
int previous_stab_code |
Definition at line 59 of file stabsread.c.
Referenced by end_stabs(), mdebug_expand_psymtab(), and process_one_symbol().
unsigned char processing_gcc_compilation |
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().
|
static |
Definition at line 524 of file stabsread.c.
Referenced by ref_add(), and stabsread_clear_cache().
|
static |
Definition at line 521 of file stabsread.c.
Referenced by ref_add(), ref_search(), and stabsread_clear_cache().
|
static |
Definition at line 518 of file stabsread.c.
|
static |
Definition at line 2050 of file stabsread.c.
Referenced by rs6000_builtin_type().
|
static |
Definition at line 640 of file stabsread.c.
|
static |
Definition at line 646 of file stabsread.c.
Referenced by define_symbol().
|
static |
Definition at line 647 of file stabsread.c.
Referenced by define_symbol().
unsigned int symnum |
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().
int* this_object_header_files |
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().
|
static |
Definition at line 226 of file stabsread.c.
Referenced by dbx_lookup_type(), end_stabs(), and start_stabs().
|
static |
Definition at line 230 of file stabsread.c.
Referenced by dbx_lookup_type(), end_stabs(), and start_stabs().
|
static |
Definition at line 194 of file stabsread.c.
Referenced by add_undefined_type_1(), and cleanup_undefined_types_1().
|
static |
Definition at line 195 of file stabsread.c.
Referenced by add_undefined_type_1().
|
static |
Definition at line 196 of file stabsread.c.
Referenced by add_undefined_type_1(), and cleanup_undefined_types_1().
|
static |
Definition at line 171 of file stabsread.c.
Referenced by read_cpp_abbrev().
|
static |
Definition at line 170 of file stabsread.c.
Referenced by read_cpp_abbrev(), and read_tilde_fields().
int within_function |
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().