Lines Matching refs:objfile
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 *);
457 static void basicdieinfo (struct dieinfo *, char *, struct objfile *);
459 static void completedieinfo (struct dieinfo *, struct objfile *);
467 static void process_dies (char *, char *, struct objfile *);
470 struct objfile *);
485 struct objfile *);
488 struct objfile *);
490 static struct type *enum_type (struct dieinfo *, struct objfile *);
510 static struct symbol *new_symbol (struct dieinfo *, struct objfile *);
512 static void synthesize_typedef (struct dieinfo *, struct objfile *,
519 static struct type *dwarf_fundamental_type (struct objfile *, int);
557 dwarf_fundamental_type (struct objfile *objfile, int typeid) in dwarf_fundamental_type() argument
570 ftypes[typeid] = cu_language_defn->la_fund_type (objfile, typeid); in dwarf_fundamental_type()
665 dwarf_build_psymtabs (struct objfile *objfile, int mainline, file_ptr dbfoff, in dwarf_build_psymtabs() argument
669 bfd *abfd = objfile->obfd; in dwarf_build_psymtabs()
672 current_objfile = objfile; in dwarf_build_psymtabs()
689 || (objfile->global_psymbols.size == 0 in dwarf_build_psymtabs()
690 && objfile->static_psymbols.size == 0)) in dwarf_build_psymtabs()
692 init_psymbol_list (objfile, 1024); in dwarf_build_psymtabs()
697 base_section_offsets = objfile->section_offsets; in dwarf_build_psymtabs()
698 baseaddr = ANOFFSET (objfile->section_offsets, 0); in dwarf_build_psymtabs()
704 scan_compilation_units (dbbase, dbbase + dbsize, dbfoff, lnoffset, objfile); in dwarf_build_psymtabs()
730 struct objfile *objfile) in read_lexical_block_scope() argument
735 process_dies (thisdie + dip->die_length, enddie, objfile); in read_lexical_block_scope()
740 dip->at_high_pc, objfile); in read_lexical_block_scope()
932 struct objfile *objfile) in struct_type() argument
981 TYPE_TAG_NAME (type) = obconcat (&objfile->objfile_obstack, in struct_type()
993 basicdieinfo (&mbr, thisdie, objfile); in struct_type()
994 completedieinfo (&mbr, objfile); in struct_type()
1024 &objfile->objfile_obstack); in struct_type()
1074 process_dies (thisdie, nextdie, objfile); in struct_type()
1138 struct objfile *objfile) in read_structure_scope() argument
1143 type = struct_type (dip, thisdie, enddie, objfile); in read_structure_scope()
1146 sym = new_symbol (dip, objfile); in read_structure_scope()
1152 synthesize_typedef (dip, objfile, type); in read_structure_scope()
1601 struct objfile *objfile) in read_enumeration() argument
1606 type = enum_type (dip, objfile); in read_enumeration()
1607 sym = new_symbol (dip, objfile); in read_enumeration()
1613 synthesize_typedef (dip, objfile, type); in read_enumeration()
1650 enum_type (struct dieinfo *dip, struct objfile *objfile) in enum_type() argument
1683 TYPE_TAG_NAME (type) = obconcat (&objfile->objfile_obstack, in enum_type()
1701 blocksz = target_to_host (scan, nbytes, GET_UNSIGNED, objfile); in enum_type()
1713 target_to_host (scan, TARGET_FT_LONG_SIZE (objfile), GET_SIGNED, in enum_type()
1714 objfile); in enum_type()
1715 scan += TARGET_FT_LONG_SIZE (objfile); in enum_type()
1717 &objfile->objfile_obstack); in enum_type()
1721 sym = (struct symbol *) obstack_alloc (&objfile->objfile_obstack, in enum_type()
1725 &objfile->objfile_obstack); in enum_type()
1746 obstack_alloc (&objfile->objfile_obstack, sizeof (struct field) * nfields); in enum_type()
1780 struct objfile *objfile) in read_func_scope() argument
1796 new->name = new_symbol (dip, objfile); in read_func_scope()
1798 process_dies (thisdie + dip->die_length, enddie, objfile); in read_func_scope()
1802 new->start_addr, dip->at_high_pc, objfile); in read_func_scope()
1885 struct objfile *objfile) in read_file_scope() argument
1903 process_dies (thisdie + dip->die_length, enddie, objfile); in read_file_scope()
1905 symtab = end_symtab (dip->at_high_pc, objfile, 0); in read_file_scope()
1931 process_dies (char *thisdie, char *enddie, struct objfile *objfile) in process_dies() argument
1938 basicdieinfo (&di, thisdie, objfile); in process_dies()
1949 completedieinfo (&di, objfile); in process_dies()
1968 read_file_scope (&di, thisdie, nextdie, objfile); in process_dies()
1976 read_func_scope (&di, thisdie, nextdie, objfile); in process_dies()
1980 read_lexical_block_scope (&di, thisdie, nextdie, objfile); in process_dies()
1985 read_structure_scope (&di, thisdie, nextdie, objfile); in process_dies()
1988 read_enumeration (&di, thisdie, nextdie, objfile); in process_dies()
2003 new_symbol (&di, objfile); in process_dies()
2088 base = target_to_host (tblscan, TARGET_FT_POINTER_SIZE (objfile), in decode_line_numbers()
2090 tblscan += TARGET_FT_POINTER_SIZE (objfile); in decode_line_numbers()
2258 abfd = pst->objfile->obfd; in read_ofile_symtab()
2259 current_objfile = pst->objfile; in read_ofile_symtab()
2294 GET_UNSIGNED, pst->objfile); in read_ofile_symtab()
2305 process_dies (dbbase, dbbase + dbsize, pst->objfile); in read_ofile_symtab()
2308 pst->symtab = pst->objfile->symtabs; in read_ofile_symtab()
2431 scan_file_globals (pst->objfile); in dwarf_psymtab_to_symtab()
2459 add_enum_psymbol (struct dieinfo *dip, struct objfile *objfile) in add_enum_psymbol() argument
2477 blocksz = target_to_host (scan, nbytes, GET_UNSIGNED, objfile); in add_enum_psymbol()
2482 scan += TARGET_FT_LONG_SIZE (objfile); in add_enum_psymbol()
2484 &objfile->static_psymbols, 0, 0, cu_language, in add_enum_psymbol()
2485 objfile); in add_enum_psymbol()
2509 add_partial_symbol (struct dieinfo *dip, struct objfile *objfile) in add_partial_symbol() argument
2516 &objfile->global_psymbols, in add_partial_symbol()
2517 0, dip->at_low_pc, cu_language, objfile); in add_partial_symbol()
2522 &objfile->global_psymbols, in add_partial_symbol()
2523 0, 0, cu_language, objfile); in add_partial_symbol()
2528 &objfile->static_psymbols, in add_partial_symbol()
2529 0, dip->at_low_pc, cu_language, objfile); in add_partial_symbol()
2534 &objfile->static_psymbols, in add_partial_symbol()
2535 0, 0, cu_language, objfile); in add_partial_symbol()
2540 &objfile->static_psymbols, in add_partial_symbol()
2541 0, 0, cu_language, objfile); in add_partial_symbol()
2552 &objfile->static_psymbols, in add_partial_symbol()
2553 0, 0, cu_language, objfile); in add_partial_symbol()
2559 &objfile->static_psymbols, in add_partial_symbol()
2560 0, 0, cu_language, objfile); in add_partial_symbol()
2634 scan_partial_symbols (char *thisdie, char *enddie, struct objfile *objfile) in scan_partial_symbols() argument
2642 basicdieinfo (&di, thisdie, objfile); in scan_partial_symbols()
2656 completedieinfo (&di, objfile); in scan_partial_symbols()
2659 add_partial_symbol (&di, objfile); in scan_partial_symbols()
2681 completedieinfo (&di, objfile); in scan_partial_symbols()
2684 add_partial_symbol (&di, objfile); in scan_partial_symbols()
2691 completedieinfo (&di, objfile); in scan_partial_symbols()
2694 add_partial_symbol (&di, objfile); in scan_partial_symbols()
2698 completedieinfo (&di, objfile); in scan_partial_symbols()
2701 add_partial_symbol (&di, objfile); in scan_partial_symbols()
2703 add_enum_psymbol (&di, objfile); in scan_partial_symbols()
2756 file_ptr lnoffset, struct objfile *objfile) in scan_compilation_units() argument
2767 basicdieinfo (&di, thisdie, objfile); in scan_compilation_units()
2778 completedieinfo (&di, objfile); in scan_compilation_units()
2794 pst = start_psymtab_common (objfile, base_section_offsets, in scan_compilation_units()
2796 objfile->global_psymbols.next, in scan_compilation_units()
2797 objfile->static_psymbols.next); in scan_compilation_units()
2801 obstack_alloc (&objfile->objfile_obstack, in scan_compilation_units()
2811 scan_partial_symbols (thisdie + di.die_length, nextdie, objfile); in scan_compilation_units()
2813 pst->n_global_syms = objfile->global_psymbols.next - in scan_compilation_units()
2814 (objfile->global_psymbols.list + pst->globals_offset); in scan_compilation_units()
2815 pst->n_static_syms = objfile->static_psymbols.next - in scan_compilation_units()
2816 (objfile->static_psymbols.list + pst->statics_offset); in scan_compilation_units()
2846 new_symbol (struct dieinfo *dip, struct objfile *objfile) in new_symbol() argument
2852 sym = (struct symbol *) obstack_alloc (&objfile->objfile_obstack, in new_symbol()
2854 OBJSTAT (objfile, n_syms++); in new_symbol()
2867 SYMBOL_SET_NAMES (sym, dip->at_name, strlen (dip->at_name), objfile); in new_symbol()
3004 synthesize_typedef (struct dieinfo *dip, struct objfile *objfile, in synthesize_typedef() argument
3012 obstack_alloc (&objfile->objfile_obstack, sizeof (struct symbol)); in synthesize_typedef()
3013 OBJSTAT (objfile, n_syms++); in synthesize_typedef()
3016 &objfile->objfile_obstack); in synthesize_typedef()
3457 basicdieinfo (struct dieinfo *dip, char *diep, struct objfile *objfile) in basicdieinfo() argument
3464 objfile); in basicdieinfo()
3481 objfile); in basicdieinfo()
3518 completedieinfo (struct dieinfo *dip, struct objfile *objfile) in completedieinfo() argument
3532 attr = target_to_host (diep, SIZEOF_ATTRIBUTE, GET_UNSIGNED, objfile); in completedieinfo()
3547 objfile); in completedieinfo()
3551 objfile); in completedieinfo()
3555 objfile); in completedieinfo()
3559 objfile); in completedieinfo()
3563 objfile); in completedieinfo()
3568 objfile); in completedieinfo()
3574 objfile); in completedieinfo()
3579 objfile); in completedieinfo()
3583 GET_UNSIGNED, objfile); in completedieinfo()
3587 objfile); in completedieinfo()
3592 objfile); in completedieinfo()
3596 objfile); in completedieinfo()
3600 objfile); in completedieinfo()
3649 objfile); in completedieinfo()
3653 objfile); in completedieinfo()
3657 objfile); in completedieinfo()
3684 diep += TARGET_FT_POINTER_SIZE (objfile); in completedieinfo()
3687 diep += 2 + target_to_host (diep, nbytes, GET_UNSIGNED, objfile); in completedieinfo()
3690 diep += 4 + target_to_host (diep, nbytes, GET_UNSIGNED, objfile); in completedieinfo()
3734 struct objfile *objfile) in target_to_host() argument
3741 rtnval = bfd_get_64 (objfile->obfd, (bfd_byte *) from); in target_to_host()
3744 rtnval = bfd_get_32 (objfile->obfd, (bfd_byte *) from); in target_to_host()
3747 rtnval = bfd_get_16 (objfile->obfd, (bfd_byte *) from); in target_to_host()
3750 rtnval = bfd_get_8 (objfile->obfd, (bfd_byte *) from); in target_to_host()
3807 nbytes = TARGET_FT_POINTER_SIZE (objfile); in attribute_size()