| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | objfiles.c | 54 static void objfile_alloc_data (struct objfile *objfile); 55 static void objfile_free_data (struct objfile *objfile); 60 struct objfile *object_files; /* Linked list of all objfiles */ 61 struct objfile *current_objfile; /* For symbol file being read in */ 62 struct objfile *symfile_objfile; /* Main symbol table loaded from */ 63 struct objfile *rt_common_objfile; /* For runtime common symbols */ 82 struct objfile *objfile = (struct objfile *) objfile_p_char; in add_to_objfile_sections() local 94 section.objfile = objfile; in add_to_objfile_sections() 99 obstack_grow (&objfile->objfile_obstack, (char *) §ion, sizeof (section)); in add_to_objfile_sections() 100 objfile->sections_end = (struct obj_section *) (((unsigned long) objfile->sections_end) + 1); in add_to_objfile_sections() [all …]
|
| H A D | objfiles.h | 146 struct objfile *objfile; member 186 #define OBJSTAT(objfile, expr) (objfile -> stats.expr) argument 202 struct objfile struct 220 struct objfile *next; argument 415 struct objfile *separate_debug_objfile; argument 419 struct objfile *separate_debug_objfile_backlink; argument 477 extern struct objfile *symfile_objfile; 482 extern struct objfile *rt_common_objfile; 497 extern struct objfile *current_objfile; 502 extern struct objfile *object_files; [all …]
|
| H A D | somread.c | 40 static int init_import_symbols (struct objfile *objfile); 42 static void som_symfile_init (struct objfile *); 44 static void som_new_init (struct objfile *); 46 static void som_symfile_read (struct objfile *, int); 48 static void som_symfile_finish (struct objfile *); 50 static void som_symtab_read (bfd *, struct objfile *, 53 static void som_symfile_offsets (struct objfile *, struct section_addr_info *); 57 extern void hpread_build_psymtabs (struct objfile *, int); 59 extern void hpread_symfile_finish (struct objfile *); 61 extern void hpread_symfile_init (struct objfile *); [all …]
|
| H A D | dbxread.c | 192 find_text_range (bfd * sym_bfd, struct objfile *objfile) in find_text_range() argument 224 DBX_TEXT_ADDR (objfile) = start; in find_text_range() 225 DBX_TEXT_SIZE (objfile) = end - start; in find_text_range() 257 static void read_dbx_dynamic_symtab (struct objfile *objfile); 259 static void read_dbx_symtab (struct objfile *); 261 static void free_bincl_list (struct objfile *); 267 static void init_bincl_list (int, struct objfile *); 269 static char *dbx_next_symbol_text (struct objfile *); 273 static void dbx_symfile_init (struct objfile *); 275 static void dbx_new_init (struct objfile *); [all …]
|
| H A D | symfile.c | 72 void (*deprecated_target_new_objfile_hook) (struct objfile *); 100 static void reread_separate_symbols (struct objfile *objfile); 106 int get_section_index (struct objfile *, char *); 108 static void find_sym_fns (struct objfile *); 146 static char *find_separate_debug_file (struct objfile *objfile); 208 qsort (pst->objfile->global_psymbols.list + pst->globals_offset, in sort_pst_symbols() 401 init_objfile_sect_indices (struct objfile *objfile) in init_objfile_sect_indices() argument 406 sect = bfd_get_section_by_name (objfile->obfd, ".text"); in init_objfile_sect_indices() 408 objfile->sect_index_text = sect->index; in init_objfile_sect_indices() 410 sect = bfd_get_section_by_name (objfile->obfd, ".data"); in init_objfile_sect_indices() [all …]
|
| H A D | minsyms.c | 160 struct objfile *objf) in lookup_minimal_symbol() 162 struct objfile *objfile; in lookup_minimal_symbol() local 180 for (objfile = object_files; in lookup_minimal_symbol() 181 objfile != NULL && found_symbol == NULL; in lookup_minimal_symbol() 182 objfile = objfile->next) in lookup_minimal_symbol() 184 if (objf == NULL || objf == objfile) in lookup_minimal_symbol() 194 msymbol = objfile->msymbol_hash[hash]; in lookup_minimal_symbol() 196 msymbol = objfile->msymbol_demangled_hash[dem_hash]; in lookup_minimal_symbol() 278 lookup_minimal_symbol_text (const char *name, struct objfile *objf) in lookup_minimal_symbol_text() 280 struct objfile *objfile; in lookup_minimal_symbol_text() local [all …]
|
| H A D | xcoffread.c | 174 static void xcoff_initial_scan (struct objfile *, int); 176 static void scan_xcoff_symtab (struct objfile *); 178 static char *xcoff_next_symbol_text (struct objfile *); 186 static void init_stringtab (bfd *, file_ptr, struct objfile *); 188 static void xcoff_symfile_init (struct objfile *); 190 static void xcoff_new_init (struct objfile *); 192 static void xcoff_symfile_finish (struct objfile *); 194 static void xcoff_symfile_offsets (struct objfile *, 197 static char *coff_getfilename (union internal_auxent *, struct objfile *); 206 struct objfile *); [all …]
|
| H A D | hpread.c | 145 void hpread_symfile_init (struct objfile *); 149 void hpread_build_psymtabs (struct objfile *, int); 151 void hpread_symfile_finish (struct objfile *); 154 struct objfile *objfile); 156 static union dnttentry *hpread_get_gntt (int, struct objfile *); 158 static union dnttentry *hpread_get_lntt (int index, struct objfile *objfile); 161 static unsigned long hpread_get_textlow (int, int, struct objfile *, int); 164 (struct objfile *, char *, CORE_ADDR, int, 171 static unsigned long hpread_get_scope_start (sltpointer, struct objfile *); 173 static unsigned long hpread_get_line (sltpointer, struct objfile *); [all …]
|
| H A D | elfread.c | 110 asection *bfd_section, struct objfile *objfile) in record_minimal_symbol() argument 116 (name, address, ms_type, NULL, bfd_section->index, bfd_section, objfile); in record_minimal_symbol() 144 elf_symtab_read (struct objfile *objfile, int dynamic) in elf_symtab_read() argument 163 char *filesymname = obsavestring ("", 0, &objfile->objfile_obstack); in elf_symtab_read() 165 struct dbx_symfile_info *dbx = objfile->sym_stab_info; in elf_symtab_read() 166 int stripped = (bfd_get_symcount (objfile->obfd) == 0); in elf_symtab_read() 170 storage_needed = bfd_get_dynamic_symtab_upper_bound (objfile->obfd); in elf_symtab_read() 178 storage_needed = bfd_get_symtab_upper_bound (objfile->obfd); in elf_symtab_read() 180 error ("Can't read symbols from %s: %s", bfd_get_filename (objfile->obfd), in elf_symtab_read() 188 number_of_symbols = bfd_canonicalize_dynamic_symtab (objfile->obfd, in elf_symtab_read() [all …]
|
| H A D | symfile.h | 30 struct objfile; 101 void (*sym_new_init) (struct objfile *); 107 void (*sym_init) (struct objfile *); 115 void (*sym_read) (struct objfile *, int); 121 void (*sym_finish) (struct objfile *); 130 void (*sym_offsets) (struct objfile *, struct section_addr_info *); 144 extern void default_symfile_offsets (struct objfile *objfile, 149 struct objfile *); 160 enum language, struct objfile *); 168 struct objfile *); [all …]
|
| H A D | symmisc.c | 58 static void dump_symtab (struct objfile *, struct symtab *, 61 static void dump_psymtab (struct objfile *, struct partial_symtab *, 64 static void dump_msymbols (struct objfile *, struct ui_file *); 66 static void dump_objfile (struct objfile *); 73 static void free_symtab_block (struct objfile *, struct block *); 86 static void free_symtab_block (struct objfile *, struct block *); 95 free_symtab_block (struct objfile *objfile, struct block *b) in free_symtab_block() argument 139 free_symtab_block (s->objfile, BLOCKVECTOR_BLOCK (bv, i)); in free_symtab() 170 struct objfile *objfile; in print_symbol_bcache_statistics() local 173 ALL_OBJFILES (objfile) in print_symbol_bcache_statistics() [all …]
|
| H A D | nlmread.c | 34 static void nlm_new_init (struct objfile *); 36 static void nlm_symfile_init (struct objfile *); 38 static void nlm_symfile_read (struct objfile *, int); 40 static void nlm_symfile_finish (struct objfile *); 42 static void nlm_symtab_read (bfd *, CORE_ADDR, struct objfile *); 52 nlm_new_init (struct objfile *ignore) in nlm_new_init() 69 nlm_symfile_init (struct objfile *ignore) in nlm_symfile_init() 93 nlm_symtab_read (bfd *abfd, CORE_ADDR addr, struct objfile *objfile) in nlm_symtab_read() argument 139 objfile); in nlm_symtab_read() 175 nlm_symfile_read (struct objfile *objfile, int mainline) in nlm_symfile_read() argument [all …]
|
| H A D | stabsread.c | 91 struct type *, struct objfile *); 93 static struct type *dbx_alloc_type (int[2], struct objfile *); 97 static struct type *error_type (char **, struct objfile *); 101 struct objfile *); 107 static struct type *read_type (char **, struct objfile *); 109 static struct type *read_range_type (char **, int[2], struct objfile *); 111 static struct type *read_sun_builtin_type (char **, int[2], struct objfile *); 114 struct objfile *); 116 static struct type *read_enum_type (char **, struct type *, struct objfile *); 122 struct objfile *); [all …]
|
| H A D | m2-lang.c | 33 static struct type *m2_create_fundamental_type (struct objfile *, int); 199 m2_create_fundamental_type (struct objfile *objfile, int typeid) in m2_create_fundamental_type() argument 212 0, "<?type?>", objfile); in m2_create_fundamental_type() 218 0, "void", objfile); in m2_create_fundamental_type() 223 TYPE_FLAG_UNSIGNED, "boolean", objfile); in m2_create_fundamental_type() 228 0, "string", objfile); in m2_create_fundamental_type() 233 0, "char", objfile); in m2_create_fundamental_type() 238 0, "signed char", objfile); in m2_create_fundamental_type() 243 TYPE_FLAG_UNSIGNED, "unsigned char", objfile); in m2_create_fundamental_type() 248 0, "short", objfile); in m2_create_fundamental_type() [all …]
|
| H A D | dwarfread.c | 217 #define TARGET_FT_POINTER_SIZE(objfile) (TARGET_PTR_BIT / TARGET_CHAR_BIT) argument 218 #define TARGET_FT_LONG_SIZE(objfile) (TARGET_LONG_BIT / TARGET_CHAR_BIT) argument 435 static CORE_ADDR target_to_host (char *, int, int, struct objfile *); 437 static void add_enum_psymbol (struct dieinfo *, struct objfile *); 442 struct objfile *); 445 struct objfile *); 448 struct objfile *); 450 static void scan_partial_symbols (char *, char *, struct objfile *); 453 struct objfile *); 455 static void add_partial_symbol (struct dieinfo *, struct objfile *); [all …]
|
| H A D | cp-namespace.c | 93 static void initialize_namespace_symtab (struct objfile *objfile); 95 static struct block *get_possible_namespace_block (struct objfile *objfile); 101 struct objfile *objfile); 105 struct objfile *objfile); 647 initialize_namespace_symtab (struct objfile *objfile) in initialize_namespace_symtab() argument 653 namespace_symtab = allocate_symtab ("<<C++-namespaces>>", objfile); in initialize_namespace_symtab() 658 bv = obstack_alloc (&objfile->objfile_obstack, in initialize_namespace_symtab() 666 bl = allocate_block (&objfile->objfile_obstack); in initialize_namespace_symtab() 667 BLOCK_DICT (bl) = dict_create_linear (&objfile->objfile_obstack, in initialize_namespace_symtab() 670 bl = allocate_block (&objfile->objfile_obstack); in initialize_namespace_symtab() [all …]
|
| H A D | stabsread.h | 22 struct objfile; 46 extern void common_block_start (char *, struct objfile *); 47 extern void common_block_end (struct objfile *); 138 struct objfile *); 148 extern void finish_global_stabs (struct objfile *objfile); 176 struct section_offsets *, struct objfile *); 178 extern void elfstab_build_psymtabs (struct objfile *objfile, 185 (struct objfile *objfile, 192 (struct objfile *objfile, 195 extern void elfstab_offset_sections (struct objfile *,
|
| H A D | mipsread.c | 46 static void mipscoff_new_init (struct objfile *); 48 static void mipscoff_symfile_init (struct objfile *); 50 static void mipscoff_symfile_read (struct objfile *, int); 52 static void mipscoff_symfile_finish (struct objfile *); 56 struct objfile *objfile); 63 mipscoff_new_init (struct objfile *ignore) in mipscoff_new_init() 72 mipscoff_symfile_init (struct objfile *objfile) in mipscoff_symfile_init() argument 79 mipscoff_symfile_read (struct objfile *objfile, int mainline) in mipscoff_symfile_read() argument 81 bfd *abfd = objfile->obfd; in mipscoff_symfile_read() 94 mdebug_build_psymtabs (objfile, &ecoff_backend (abfd)->debug_swap, in mipscoff_symfile_read() [all …]
|
| H A D | coffread.c | 158 struct objfile *); 162 static void enter_linenos (long, int, int, struct objfile *); 183 static void coff_symtab_read (long, unsigned int, struct objfile *); 246 static int cs_to_section (struct coff_symbol *, struct objfile *); 264 cs_to_section (struct coff_symbol *cs, struct objfile *objfile) in cs_to_section() argument 268 int off = SECT_OFF_TEXT (objfile); in cs_to_section() 272 bfd_map_over_sections (objfile->obfd, find_targ_sec, &args); in cs_to_section() 277 off = SECT_OFF_TEXT (objfile); in cs_to_section() 279 off = SECT_OFF_DATA (objfile); in cs_to_section() 302 addr = bfd_get_section_vma (objfile->obfd, sect); in cs_section_address() [all …]
|
| H A D | glibc-tdep.c | 39 find_minsym_and_objfile (char *name, struct objfile **objfile_p) in find_minsym_and_objfile() 41 struct objfile *objfile; in find_minsym_and_objfile() local 43 ALL_OBJFILES (objfile) in find_minsym_and_objfile() 47 ALL_OBJFILE_MSYMBOLS (objfile, msym) in find_minsym_and_objfile() 52 *objfile_p = objfile; in find_minsym_and_objfile() 87 struct objfile *objfile; in glibc_skip_solib_resolver() local 89 = find_minsym_and_objfile ("_dl_runtime_resolve", &objfile); in glibc_skip_solib_resolver() 94 = lookup_minimal_symbol ("fixup", NULL, objfile); in glibc_skip_solib_resolver()
|
| H A D | f-lang.c | 89 static struct type *f_create_fundamental_type (struct objfile *, int); 251 f_create_fundamental_type (struct objfile *objfile, int typeid) in f_create_fundamental_type() argument 260 0, "VOID", objfile); in f_create_fundamental_type() 265 TYPE_FLAG_UNSIGNED, "boolean", objfile); in f_create_fundamental_type() 270 0, "string", objfile); in f_create_fundamental_type() 275 0, "character", objfile); in f_create_fundamental_type() 280 0, "integer*1", objfile); in f_create_fundamental_type() 285 TYPE_FLAG_UNSIGNED, "logical*1", objfile); in f_create_fundamental_type() 290 0, "integer*2", objfile); in f_create_fundamental_type() 295 0, "short", objfile); /* FIXME-fnf */ in f_create_fundamental_type() [all …]
|
| H A D | mdebugread.c | 273 static void parse_partial_symbols (struct objfile *); 288 static struct symtab *new_symtab (char *, int, struct objfile *); 302 static struct partial_symtab *new_psymtab (char *, struct objfile *); 314 static void handle_psymbol_enumerators (struct objfile *, FDR *, int, 317 static char *mdebug_next_symbol_text (struct objfile *); 354 scan_file_globals (pst->objfile); in mdebug_psymtab_to_symtab() 401 mdebug_build_psymtabs (struct objfile *objfile, in mdebug_build_psymtabs() argument 405 cur_bfd = objfile->obfd; in mdebug_build_psymtabs() 421 info->fdr = (FDR *) obstack_alloc (&objfile->objfile_obstack, in mdebug_build_psymtabs() 429 (*swap->swap_fdr_in) (objfile->obfd, fdr_src, fdr_ptr); in mdebug_build_psymtabs() [all …]
|
| H A D | c-lang.c | 208 c_create_fundamental_type (struct objfile *objfile, int typeid) in c_create_fundamental_type() argument 221 0, "<?type?>", objfile); in c_create_fundamental_type() 227 0, "void", objfile); in c_create_fundamental_type() 232 0, "bool", objfile); in c_create_fundamental_type() 237 TYPE_FLAG_NOSIGN, "char", objfile); in c_create_fundamental_type() 242 0, "signed char", objfile); in c_create_fundamental_type() 247 TYPE_FLAG_UNSIGNED, "unsigned char", objfile); in c_create_fundamental_type() 252 0, "short", objfile); in c_create_fundamental_type() 257 0, "short", objfile); /* FIXME-fnf */ in c_create_fundamental_type() 262 TYPE_FLAG_UNSIGNED, "unsigned short", objfile); in c_create_fundamental_type() [all …]
|
| H A D | p-lang.c | 275 pascal_create_fundamental_type (struct objfile *objfile, int typeid) in pascal_create_fundamental_type() argument 288 0, "<?type?>", objfile); in pascal_create_fundamental_type() 294 0, "void", objfile); in pascal_create_fundamental_type() 299 0, "char", objfile); in pascal_create_fundamental_type() 304 0, "shortint", objfile); in pascal_create_fundamental_type() 309 TYPE_FLAG_UNSIGNED, "byte", objfile); in pascal_create_fundamental_type() 314 0, "integer", objfile); in pascal_create_fundamental_type() 319 0, "integer", objfile); /* FIXME-fnf */ in pascal_create_fundamental_type() 324 TYPE_FLAG_UNSIGNED, "word", objfile); in pascal_create_fundamental_type() 329 0, "longint", objfile); in pascal_create_fundamental_type() [all …]
|
| H A D | buildsym.h | 25 struct objfile; 204 #define next_symbol_text(objfile) (*next_symbol_text_func)(objfile) argument 208 EXTERN char *(*next_symbol_text_func) (struct objfile *); 239 struct objfile *objfile); 252 struct objfile *objfile, int section); 256 extern void scan_file_globals (struct objfile *objfile); 278 extern void record_pending_block (struct objfile *objfile,
|