Lines Matching refs:objfile

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 *);
175 static CORE_ADDR hpread_get_location (sltpointer, struct objfile *);
184 (struct objfile *, int, int, CORE_ADDR, int,
189 static struct type **hpread_lookup_type (dnttpointer, struct objfile *);
191 static struct type *hpread_alloc_type (dnttpointer, struct objfile *);
194 (dnttpointer, union dnttentry *, struct objfile *);
197 (dnttpointer, union dnttentry *, struct objfile *, int);
200 (dnttpointer, union dnttentry *, struct objfile *, int);
203 (dnttpointer, union dnttentry *, struct objfile *);
205 static struct type *hpread_get_nth_template_arg (struct objfile *, int);
208 (dnttpointer, union dnttentry *, struct objfile *, char *);
211 (dnttpointer, union dnttentry *, struct objfile *);
214 (dnttpointer, union dnttentry *dn_bufp, struct objfile *objfile);
217 (dnttpointer, union dnttentry *, struct objfile *);
219 static struct type *hpread_type_lookup (dnttpointer, struct objfile *);
222 (struct subfile *, sltpointer, sltpointer, struct objfile *, CORE_ADDR);
226 struct objfile *, CORE_ADDR, int, char *, int, int *);
228 static int hpread_get_scope_depth (union dnttentry *, struct objfile *, int);
231 (struct type *, char *, struct objfile *);
234 (struct type *, struct type *, struct objfile *);
241 (int, dnttpointer, union dnttentry **, struct objfile *);
298 set_namestring (union dnttentry *sym, char **namep, struct objfile *objfile) in set_namestring() argument
304 else if ((unsigned) sym->dsfile.name >= VT_SIZE (objfile)) in set_namestring()
311 *namep = sym->dsfile.name + VT (objfile); in set_namestring()
381 header_section_size = bfd_section_size (objfile->obfd, header_section); in hpread_pxdb_needed()
448 header_section_size = bfd_section_size (objfile->obfd, header_section); in hpread_pxdb_needed()
558 objfile->name); \
720 char *vt_bits, struct objfile *objfile) in scan_procs() argument
787 dn_bufp = hpread_get_lntt (qPD[curr_pd].isym, objfile); in scan_procs()
795 &objfile->global_psymbols, in scan_procs()
797 ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile))), in scan_procs()
800 objfile); in scan_procs()
808 &objfile->static_psymbols, in scan_procs()
810 ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile))), in scan_procs()
813 objfile); in scan_procs()
842 hpread_quick_traverse (struct objfile *objfile, char *gntt_bits, in hpread_quick_traverse() argument
972 max_LNTT_sym_index = LNTT_SYMCOUNT (objfile); in hpread_quick_traverse()
994 global_syms = objfile->global_psymbols.list; in hpread_quick_traverse()
995 static_syms = objfile->static_psymbols.list; in hpread_quick_traverse()
1052 pst = hpread_start_psymtab (objfile, in hpread_quick_traverse()
1071 global_syms = objfile->global_psymbols.next; in hpread_quick_traverse()
1072 static_syms = objfile->static_psymbols.next; in hpread_quick_traverse()
1153 pst = hpread_start_psymtab (objfile, in hpread_quick_traverse()
1169 start_adr, end_adr, pst, vt_bits, objfile); in hpread_quick_traverse()
1239 global_syms = objfile->global_psymbols.next; in hpread_quick_traverse()
1240 static_syms = objfile->static_psymbols.next; in hpread_quick_traverse()
1381 pst = hpread_start_psymtab (objfile, in hpread_quick_traverse()
1397 start_adr, end_adr, pst, vt_bits, objfile); in hpread_quick_traverse()
1468 global_syms = objfile->global_psymbols.next; in hpread_quick_traverse()
1469 static_syms = objfile->static_psymbols.next; in hpread_quick_traverse()
1493 pst = hpread_start_psymtab (objfile, in hpread_quick_traverse()
1502 start_adr, end_adr, pst, vt_bits, objfile); in hpread_quick_traverse()
1523 pst = hpread_start_psymtab (objfile, in hpread_quick_traverse()
1528 objfile->global_psymbols.next, in hpread_quick_traverse()
1529 objfile->static_psymbols.next); in hpread_quick_traverse()
1547 hpread_get_header (struct objfile *objfile, PXDB_header_ptr pxdb_header_p) in hpread_get_header() argument
1556 header_section = bfd_get_section_by_name (objfile->obfd, "$HEADER$"); in hpread_get_header()
1566 printf ("==No debug info at all for %s.\n", objfile->name); in hpread_get_header()
1576 debug_section = bfd_get_section_by_name (objfile->obfd, "$DEBUG$"); in hpread_get_header()
1577 pinfo_section = bfd_get_section_by_name (objfile->obfd, "$PINFO$"); in hpread_get_header()
1581 bfd_get_section_contents (objfile->obfd, header_section, in hpread_get_header()
1600 printf ("==OOps, PINFO, let's try to handle this, %s.\n", objfile->name); in hpread_get_header()
1604 bfd_get_section_contents (objfile->obfd, in hpread_get_header()
1612 warning ("File \"%s\" not processed by pxdb!", objfile->name); in hpread_get_header()
1639 printf ("==No debug info at all for %s.\n", objfile->name); in hpread_get_header()
1665 hpread_symfile_init (struct objfile *objfile) in hpread_symfile_init() argument
1670 objfile->sym_private = in hpread_symfile_init()
1672 memset (objfile->sym_private, 0, sizeof (struct hpread_symfile_info)); in hpread_symfile_init()
1675 DNTT_TYPE_VECTOR (objfile) = 0; in hpread_symfile_init()
1678 gntt_section = bfd_get_section_by_name (objfile->obfd, "$GNTT$"); in hpread_symfile_init()
1682 GNTT (objfile) in hpread_symfile_init()
1683 = obstack_alloc (&objfile->objfile_obstack, in hpread_symfile_init()
1684 bfd_section_size (objfile->obfd, gntt_section)); in hpread_symfile_init()
1686 bfd_get_section_contents (objfile->obfd, gntt_section, GNTT (objfile), in hpread_symfile_init()
1687 0, bfd_section_size (objfile->obfd, gntt_section)); in hpread_symfile_init()
1689 GNTT_SYMCOUNT (objfile) in hpread_symfile_init()
1690 = bfd_section_size (objfile->obfd, gntt_section) in hpread_symfile_init()
1700 lntt_section = bfd_get_section_by_name (objfile->obfd, "$LNTT$"); in hpread_symfile_init()
1704 LNTT (objfile) in hpread_symfile_init()
1705 = obstack_alloc (&objfile->objfile_obstack, in hpread_symfile_init()
1706 bfd_section_size (objfile->obfd, lntt_section)); in hpread_symfile_init()
1708 bfd_get_section_contents (objfile->obfd, lntt_section, LNTT (objfile), in hpread_symfile_init()
1709 0, bfd_section_size (objfile->obfd, lntt_section)); in hpread_symfile_init()
1711 LNTT_SYMCOUNT (objfile) in hpread_symfile_init()
1712 = bfd_section_size (objfile->obfd, lntt_section) in hpread_symfile_init()
1717 slt_section = bfd_get_section_by_name (objfile->obfd, "$SLT$"); in hpread_symfile_init()
1721 SLT (objfile) = in hpread_symfile_init()
1722 obstack_alloc (&objfile->objfile_obstack, in hpread_symfile_init()
1723 bfd_section_size (objfile->obfd, slt_section)); in hpread_symfile_init()
1725 bfd_get_section_contents (objfile->obfd, slt_section, SLT (objfile), in hpread_symfile_init()
1726 0, bfd_section_size (objfile->obfd, slt_section)); in hpread_symfile_init()
1730 vt_section = bfd_get_section_by_name (objfile->obfd, "$VT$"); in hpread_symfile_init()
1734 VT_SIZE (objfile) = bfd_section_size (objfile->obfd, vt_section); in hpread_symfile_init()
1736 VT (objfile) = in hpread_symfile_init()
1737 (char *) obstack_alloc (&objfile->objfile_obstack, in hpread_symfile_init()
1738 VT_SIZE (objfile)); in hpread_symfile_init()
1740 bfd_get_section_contents (objfile->obfd, vt_section, VT (objfile), in hpread_symfile_init()
1741 0, VT_SIZE (objfile)); in hpread_symfile_init()
1762 hpread_build_psymtabs (struct objfile *objfile, int mainline) in hpread_build_psymtabs() argument
1816 old_chain = make_cleanup_free_objfile (objfile); in hpread_build_psymtabs()
1832 if (hpread_get_header (objfile, &pxdb_header)) in hpread_build_psymtabs()
1838 printf ("\nNew method for %s\n", objfile->name); in hpread_build_psymtabs()
1854 found_modules_in_program = hpread_quick_traverse (objfile, in hpread_build_psymtabs()
1855 GNTT (objfile), in hpread_build_psymtabs()
1856 VT (objfile), in hpread_build_psymtabs()
1878 printf ("\nGoing on to old method for %s\n", objfile->name); in hpread_build_psymtabs()
1894 symcount = GNTT_SYMCOUNT (objfile); in hpread_build_psymtabs()
1896 symcount = LNTT_SYMCOUNT (objfile); in hpread_build_psymtabs()
1903 dn_bufp = hpread_get_gntt (hp_symnum, objfile); in hpread_build_psymtabs()
1905 dn_bufp = hpread_get_lntt (hp_symnum, objfile); in hpread_build_psymtabs()
1931 set_namestring (dn_bufp, &namestring, objfile); in hpread_build_psymtabs()
1976 obstack_alloc (&pst->objfile->objfile_obstack, in hpread_build_psymtabs()
2003 valu = hpread_get_textlow (i, hp_symnum, objfile, symcount); in hpread_build_psymtabs()
2004 valu += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in hpread_build_psymtabs()
2005 pst = hpread_start_psymtab (objfile, in hpread_build_psymtabs()
2009 objfile->global_psymbols.next, in hpread_build_psymtabs()
2010 objfile->static_psymbols.next); in hpread_build_psymtabs()
2036 set_namestring (dn_bufp, &namestring, objfile); in hpread_build_psymtabs()
2037 valu = hpread_get_textlow (i, hp_symnum, objfile, symcount); in hpread_build_psymtabs()
2038 valu += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in hpread_build_psymtabs()
2041 pst = hpread_start_psymtab (objfile, in hpread_build_psymtabs()
2045 objfile->global_psymbols.next, in hpread_build_psymtabs()
2046 objfile->static_psymbols.next); in hpread_build_psymtabs()
2056 valu = dn_bufp->dfunc.hiaddr + ANOFFSET (objfile->section_offsets, in hpread_build_psymtabs()
2057 SECT_OFF_TEXT (objfile)); in hpread_build_psymtabs()
2061 ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in hpread_build_psymtabs()
2062 set_namestring (dn_bufp, &namestring, objfile); in hpread_build_psymtabs()
2066 &objfile->global_psymbols, valu, in hpread_build_psymtabs()
2067 0, language_unknown, objfile); in hpread_build_psymtabs()
2071 &objfile->static_psymbols, valu, in hpread_build_psymtabs()
2072 0, language_unknown, objfile); in hpread_build_psymtabs()
2077 valu = dn_bufp->ddocfunc.hiaddr + ANOFFSET (objfile->section_offsets, in hpread_build_psymtabs()
2078 SECT_OFF_TEXT (objfile)); in hpread_build_psymtabs()
2082 ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in hpread_build_psymtabs()
2083 set_namestring (dn_bufp, &namestring, objfile); in hpread_build_psymtabs()
2087 &objfile->global_psymbols, valu, in hpread_build_psymtabs()
2088 0, language_unknown, objfile); in hpread_build_psymtabs()
2092 &objfile->static_psymbols, valu, in hpread_build_psymtabs()
2093 0, language_unknown, objfile); in hpread_build_psymtabs()
2157 set_namestring (dn_bufp, &namestring, objfile); in hpread_build_psymtabs()
2160 pst = hpread_start_psymtab (objfile, in hpread_build_psymtabs()
2164 objfile->global_psymbols.next, in hpread_build_psymtabs()
2165 objfile->static_psymbols.next); in hpread_build_psymtabs()
2172 valu += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile)); in hpread_build_psymtabs()
2183 &objfile->global_psymbols, in hpread_build_psymtabs()
2185 0, language_unknown, objfile); in hpread_build_psymtabs()
2191 &objfile->static_psymbols, in hpread_build_psymtabs()
2193 0, language_unknown, objfile); in hpread_build_psymtabs()
2208 dn_bufp->dtype.type.dnttp.index < LNTT_SYMCOUNT (objfile)) in hpread_build_psymtabs()
2212 dn_bufp = hpread_get_lntt (dn_bufp->dtype.type.dnttp.index, objfile); in hpread_build_psymtabs()
2221 &objfile->global_psymbols, in hpread_build_psymtabs()
2223 0, language_unknown, objfile); in hpread_build_psymtabs()
2229 &objfile->static_psymbols, in hpread_build_psymtabs()
2231 0, language_unknown, objfile); in hpread_build_psymtabs()
2241 set_namestring (dn_bufp, &namestring, objfile); in hpread_build_psymtabs()
2244 pst = hpread_start_psymtab (objfile, in hpread_build_psymtabs()
2248 objfile->global_psymbols.next, in hpread_build_psymtabs()
2249 objfile->static_psymbols.next); in hpread_build_psymtabs()
2254 &objfile->global_psymbols, 0, in hpread_build_psymtabs()
2255 0, language_unknown, objfile); in hpread_build_psymtabs()
2259 &objfile->static_psymbols, 0, in hpread_build_psymtabs()
2260 0, language_unknown, objfile); in hpread_build_psymtabs()
2285 hpread_symfile_finish (struct objfile *objfile) in hpread_symfile_finish() argument
2287 if (objfile->sym_private != NULL) in hpread_symfile_finish()
2289 xfree (objfile->sym_private); in hpread_symfile_finish()
2299 hpread_get_lntt (int index, struct objfile *objfile) in hpread_get_lntt() argument
2302 &(LNTT (objfile)[(index * sizeof (struct dntt_type_block))]); in hpread_get_lntt()
2306 hpread_get_gntt (int index, struct objfile *objfile) in hpread_get_gntt() argument
2309 &(GNTT (objfile)[(index * sizeof (struct dntt_type_block))]); in hpread_get_gntt()
2313 hpread_get_slt (int index, struct objfile *objfile) in hpread_get_slt() argument
2315 return (union sltentry *) &(SLT (objfile)[index * sizeof (union sltentry)]); in hpread_get_slt()
2324 hpread_get_textlow (int global, int index, struct objfile *objfile, in hpread_get_textlow() argument
2336 dn_bufp = hpread_get_gntt (index++, objfile); in hpread_get_textlow()
2338 dn_bufp = hpread_get_lntt (index++, objfile); in hpread_get_textlow()
2362 msymbol = lookup_minimal_symbol (dn_bufp->dfunc.name + VT (objfile), NULL, in hpread_get_textlow()
2363 objfile); in hpread_get_textlow()
2365 msymbol = lookup_minimal_symbol (dn_bufp->ddocfunc.name + VT (objfile), NULL, in hpread_get_textlow()
2366 objfile); in hpread_get_textlow()
2382 hpread_start_psymtab (struct objfile *objfile, char *filename, in hpread_start_psymtab() argument
2387 int offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); in hpread_start_psymtab()
2390 start_psymtab_common (objfile, objfile->section_offsets, in hpread_start_psymtab()
2395 obstack_alloc (&objfile->objfile_obstack, sizeof (struct symloc)); in hpread_start_psymtab()
2420 struct objfile *objfile = pst->objfile; in hpread_end_psymtab() local
2421 int offset = ANOFFSET (pst->section_offsets, SECT_OFF_TEXT (objfile)); in hpread_end_psymtab()
2435 objfile->global_psymbols.next - (objfile->global_psymbols.list + pst->globals_offset); in hpread_end_psymtab()
2437 objfile->static_psymbols.next - (objfile->static_psymbols.list + pst->statics_offset); in hpread_end_psymtab()
2456 obstack_alloc (&objfile->objfile_obstack, in hpread_end_psymtab()
2467 allocate_psymtab (include_list[i], objfile); in hpread_end_psymtab()
2471 (char *) obstack_alloc (&objfile->objfile_obstack, in hpread_end_psymtab()
2481 obstack_alloc (&objfile->objfile_obstack, in hpread_end_psymtab()
2532 hpread_get_scope_start (sltpointer index, struct objfile *objfile) in hpread_get_scope_start() argument
2536 sl_bufp = hpread_get_slt (index, objfile); in hpread_get_scope_start()
2543 hpread_get_line (sltpointer index, struct objfile *objfile) in hpread_get_line() argument
2547 sl_bufp = hpread_get_slt (index, objfile); in hpread_get_line()
2554 hpread_get_location (sltpointer index, struct objfile *objfile) in hpread_get_location() argument
2560 sl_bufp = hpread_get_slt (index, objfile); in hpread_get_location()
2568 sl_bufp = hpread_get_slt (index - i, objfile); in hpread_get_location()
2579 sl_bufp = hpread_get_slt (index + i, objfile); in hpread_get_location()
2711 hpread_expand_symtab (pst->objfile, LDSYMOFF (pst), LDSYMLEN (pst), in hpread_psymtab_to_symtab_1()
2762 scan_file_globals (pst->objfile); in hpread_psymtab_to_symtab()
2782 hpread_expand_symtab (struct objfile *objfile, int sym_offset, int sym_size, in hpread_expand_symtab() argument
2794 current_objfile = objfile; in hpread_expand_symtab()
2807 dn_bufp = hpread_get_lntt (sym_index, objfile); in hpread_expand_symtab()
2840 dn_bufp = hpread_get_lntt (sym_index + symnum, objfile); in hpread_expand_symtab()
2846 set_namestring (dn_bufp, &namestring, objfile); in hpread_expand_symtab()
2849 objfile, text_offset, text_size, in hpread_expand_symtab()
2880 return end_symtab (text_offset + text_size, objfile, SECT_OFF_TEXT (objfile)); in hpread_expand_symtab()
2980 hpread_lookup_type (dnttpointer hp_type, struct objfile *objfile) in hpread_lookup_type() argument
3016 if (index < LNTT_SYMCOUNT (objfile)) in hpread_lookup_type()
3018 if (index >= DNTT_TYPE_VECTOR_LENGTH (objfile)) in hpread_lookup_type()
3020 old_len = DNTT_TYPE_VECTOR_LENGTH (objfile); in hpread_lookup_type()
3025 DNTT_TYPE_VECTOR_LENGTH (objfile) = LNTT_SYMCOUNT (objfile) + GNTT_SYMCOUNT (objfile); in hpread_lookup_type()
3026 DNTT_TYPE_VECTOR (objfile) = (struct type **) in hpread_lookup_type()
3027 xmalloc (DNTT_TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *)); in hpread_lookup_type()
3028 memset (&DNTT_TYPE_VECTOR (objfile)[old_len], 0, in hpread_lookup_type()
3029 (DNTT_TYPE_VECTOR_LENGTH (objfile) - old_len) * in hpread_lookup_type()
3037 while (index >= DNTT_TYPE_VECTOR_LENGTH (objfile)) in hpread_lookup_type()
3039 DNTT_TYPE_VECTOR_LENGTH (objfile) *= 2; in hpread_lookup_type()
3044 DNTT_TYPE_VECTOR (objfile) = (struct type **) in hpread_lookup_type()
3045 xrealloc ((char *) DNTT_TYPE_VECTOR (objfile), in hpread_lookup_type()
3046 (DNTT_TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *))); in hpread_lookup_type()
3048 memset (&DNTT_TYPE_VECTOR (objfile)[old_len], 0, in hpread_lookup_type()
3049 (DNTT_TYPE_VECTOR_LENGTH (objfile) - old_len) * in hpread_lookup_type()
3054 return &DNTT_TYPE_VECTOR (objfile)[index]; in hpread_lookup_type()
3065 hpread_alloc_type (dnttpointer hp_type, struct objfile *objfile) in hpread_alloc_type() argument
3069 type_addr = hpread_lookup_type (hp_type, objfile); in hpread_alloc_type()
3072 *type_addr = alloc_type (objfile); in hpread_alloc_type()
3088 struct objfile *objfile) in hpread_read_enum_type() argument
3106 type = hpread_alloc_type (hp_type, objfile); in hpread_read_enum_type()
3126 memp = hpread_get_lntt (mem.dnttp.index, objfile); in hpread_read_enum_type()
3128 name = VT (objfile) + memp->dmember.name; in hpread_read_enum_type()
3129 sym = (struct symbol *) obstack_alloc (&objfile->objfile_obstack, in hpread_read_enum_type()
3133 &objfile->objfile_obstack); in hpread_read_enum_type()
3147 obstack_alloc (&objfile->objfile_obstack, sizeof (struct field) * nsyms); in hpread_read_enum_type()
3182 struct objfile *objfile, int newblock) in hpread_read_function_type() argument
3196 type = hpread_alloc_type (hp_type, objfile); in hpread_read_function_type()
3207 objfile)); in hpread_read_function_type()
3210 objfile)); in hpread_read_function_type()
3213 objfile)); in hpread_read_function_type()
3231 paramp = hpread_get_lntt (param.dnttp.index, objfile); in hpread_read_function_type()
3236 name = VT (objfile) + paramp->dfparam.name; in hpread_read_function_type()
3237 sym = (struct symbol *) obstack_alloc (&objfile->objfile_obstack, in hpread_read_function_type()
3241 &objfile->objfile_obstack); in hpread_read_function_type()
3255 += hpread_adjust_stack_address (CURRENT_FUNCTION_VALUE (objfile)); in hpread_read_function_type()
3272 SYMBOL_TYPE (sym) = hpread_type_lookup (paramp->dfparam.type, objfile); in hpread_read_function_type()
3307 obstack_alloc (&objfile->objfile_obstack, in hpread_read_function_type()
3339 fixup_class_method_type (fixup_class, fixup_method, objfile); in hpread_read_function_type()
3365 struct objfile *objfile, int newblock) in hpread_read_doc_function_type() argument
3379 type = hpread_alloc_type (hp_type, objfile); in hpread_read_doc_function_type()
3391 objfile)); in hpread_read_doc_function_type()
3410 paramp = hpread_get_lntt (param.dnttp.index, objfile); in hpread_read_doc_function_type()
3415 name = VT (objfile) + paramp->dfparam.name; in hpread_read_doc_function_type()
3416 sym = (struct symbol *) obstack_alloc (&objfile->objfile_obstack, in hpread_read_doc_function_type()
3433 += hpread_adjust_stack_address(CURRENT_FUNCTION_VALUE (objfile)); in hpread_read_doc_function_type()
3450 SYMBOL_TYPE (sym) = hpread_type_lookup (paramp->dfparam.type, objfile); in hpread_read_doc_function_type()
3485 obstack_alloc (&objfile->objfile_obstack, in hpread_read_doc_function_type()
3519 fixup_class_method_type (fixup_class, fixup_method, objfile); in hpread_read_doc_function_type()
3561 struct objfile *objfile) in hpread_read_struct_type() argument
3624 type = hpread_alloc_type (hp_type, objfile); in hpread_read_struct_type()
3684 parentp = hpread_get_lntt (parent.dnttp.index, objfile); in hpread_read_struct_type()
3699 objfile); in hpread_read_struct_type()
3759 fieldp = hpread_get_lntt (field.dnttp.index, objfile); in hpread_read_struct_type()
3772 t_list->arg.name = VT (objfile) + fieldp->dtempl_arg.name; in hpread_read_struct_type()
3774 objfile, t_list->arg.name); in hpread_read_struct_type()
3784 obstack_alloc (&objfile->objfile_obstack, sizeof (struct template_arg) * n_templ_args); in hpread_read_struct_type()
3805 fieldp = hpread_get_lntt (field.dnttp.index, objfile); in hpread_read_struct_type()
3824 fn_fieldp = hpread_get_lntt (fn_field.dnttp.index, objfile); in hpread_read_struct_type()
3833 fn_fieldp = hpread_get_lntt (fn_field.dnttp.index, objfile); in hpread_read_struct_type()
3845 fn_fieldp = hpread_get_lntt (fn_field.dnttp.index, objfile); in hpread_read_struct_type()
3859 memtype = hpread_type_lookup (fn_field, objfile); in hpread_read_struct_type()
3882 method_name = (char *) (VT (objfile) + fn_fieldp->dfunc.name); in hpread_read_struct_type()
3883 method_alias = (char *) (VT (objfile) + fn_fieldp->dfunc.alias); in hpread_read_struct_type()
4032 list->field.name = VT (objfile) + fn_fieldp->dsvar.name; in hpread_read_struct_type()
4034 memtype = hpread_type_lookup (fn_fieldp->dsvar.type, objfile); in hpread_read_struct_type()
4063 list->field.name = VT (objfile) + fn_fieldp->dfield.name; in hpread_read_struct_type()
4070 memtype = hpread_type_lookup (fn_fieldp->dfield.type, objfile); in hpread_read_struct_type()
4095 list->field.name = VT (objfile) + fn_fieldp->dsvar.name; in hpread_read_struct_type()
4099 memtype = hpread_type_lookup (fn_fieldp->dsvar.type, objfile); in hpread_read_struct_type()
4116 list->field.name = VT (objfile) + fn_fieldp->ddvar.name; in hpread_read_struct_type()
4120 memtype = hpread_type_lookup (fn_fieldp->ddvar.type, objfile); in hpread_read_struct_type()
4165 list->field.name = VT (objfile) + fieldp->dfield.name; in hpread_read_struct_type()
4188 memtype = hpread_type_lookup (fieldp->dfield.type, objfile); in hpread_read_struct_type()
4217 field = hpread_get_next_skip_over_anon_unions (1, field, &fieldp, objfile); in hpread_read_struct_type()
4238 fieldp = hpread_get_lntt (field.dnttp.index, objfile); in hpread_read_struct_type()
4248 i_list->t = hpread_type_lookup (field, objfile); in hpread_read_struct_type()
4253 fieldp = hpread_get_lntt (field.dnttp.index, objfile); in hpread_read_struct_type()
4264 obstack_alloc (&objfile->objfile_obstack, sizeof (struct type *) * ninstantiations); in hpread_read_struct_type()
4276 obstack_alloc (&objfile->objfile_obstack, sizeof (struct field) * nfields); in hpread_read_struct_type()
4290 obstack_alloc (&objfile->objfile_obstack, sizeof (struct fn_fieldlist) * n_fn_fields); in hpread_read_struct_type()
4364 if (hpread_get_scope_depth (dn_bufp, objfile, 1 /* no need for real depth */ )) in hpread_read_struct_type()
4393 struct objfile *objfile) in fix_static_member_physnames() argument
4408 obstack_alloc (&objfile->objfile_obstack, in fix_static_member_physnames()
4424 struct objfile *objfile) in fixup_class_method_type() argument
4428 if (!class || !method || !objfile) in fixup_class_method_type()
4467 hpread_get_nth_template_arg (struct objfile *objfile, int n) in hpread_get_nth_template_arg() argument
4472 return lookup_fundamental_type (objfile, FT_TEMPLATE_ARG); in hpread_get_nth_template_arg()
4479 struct objfile *objfile, char *name) in hpread_read_templ_arg_type() argument
4484 type = hpread_alloc_type (hp_type, objfile); in hpread_read_templ_arg_type()
4500 struct objfile *objfile) in hpread_read_set_type() argument
4505 type = hpread_alloc_type (hp_type, objfile); in hpread_read_set_type()
4514 objfile); in hpread_read_set_type()
4522 struct objfile *objfile) in hpread_read_array_type() argument
4531 type = hpread_alloc_type (hp_type, objfile); in hpread_read_array_type()
4560 objfile); in hpread_read_array_type()
4571 obstack_alloc (&objfile->objfile_obstack, sizeof (struct field)); in hpread_read_array_type()
4573 objfile); in hpread_read_array_type()
4580 struct objfile *objfile) in hpread_read_subrange_type() argument
4585 type = hpread_alloc_type (hp_type, objfile); in hpread_read_subrange_type()
4594 = (struct field *) obstack_alloc (&objfile->objfile_obstack, in hpread_read_subrange_type()
4607 objfile); in hpread_read_subrange_type()
4640 hpread_type_lookup (dnttpointer hp_type, struct objfile *objfile) in hpread_type_lookup() argument
4653 return hpread_get_nth_template_arg (objfile, hp_type.dntti.bitlength); in hpread_type_lookup()
4655 return lookup_fundamental_type (objfile, in hpread_type_lookup()
4660 if (hp_type.dnttp.index < LNTT_SYMCOUNT (objfile)) in hpread_type_lookup()
4661 dn_bufp = hpread_get_lntt (hp_type.dnttp.index, objfile); in hpread_type_lookup()
4664 return lookup_fundamental_type (objfile, FT_VOID); in hpread_type_lookup()
4697 return lookup_fundamental_type (objfile, FT_VOID); in hpread_type_lookup()
4704 return hpread_read_function_type (hp_type, dn_bufp, objfile, 0); in hpread_type_lookup()
4707 return hpread_read_doc_function_type (hp_type, dn_bufp, objfile, 0); in hpread_type_lookup()
4713 objfile); in hpread_type_lookup()
4760 objfile); in hpread_type_lookup()
4762 suffix = VT (objfile) + dn_bufp->dtype.name; in hpread_type_lookup()
4768 if (dn_bufp->dtype.type.dnttp.index < LNTT_SYMCOUNT (objfile)) in hpread_type_lookup()
4769 dn_bufp = hpread_get_lntt (dn_bufp->dtype.type.dnttp.index, objfile); in hpread_type_lookup()
4812 = (char *) obstack_alloc (&objfile->objfile_obstack, in hpread_type_lookup()
4821 fix_static_member_physnames (structtype, suffix, objfile); in hpread_type_lookup()
4832 objfile), in hpread_type_lookup()
4841 objfile), in hpread_type_lookup()
4845 return hpread_read_enum_type (hp_type, dn_bufp, objfile); in hpread_type_lookup()
4847 return hpread_read_set_type (hp_type, dn_bufp, objfile); in hpread_type_lookup()
4849 return hpread_read_subrange_type (hp_type, dn_bufp, objfile); in hpread_type_lookup()
4851 return hpread_read_array_type (hp_type, dn_bufp, objfile); in hpread_type_lookup()
4854 return hpread_read_struct_type (hp_type, dn_bufp, objfile); in hpread_type_lookup()
4856 return hpread_type_lookup (dn_bufp->dfield.type, objfile); in hpread_type_lookup()
4863 return hpread_read_function_type (hp_type, dn_bufp, objfile, 0); in hpread_type_lookup()
4875 objfile), in hpread_type_lookup()
4877 objfile), in hpread_type_lookup()
4878 ptrmemtype = alloc_type (objfile); in hpread_type_lookup()
4897 objfile); in hpread_type_lookup()
4899 objfile); in hpread_type_lookup()
4902 ptrmemtype = alloc_type (objfile); in hpread_type_lookup()
4913 return hpread_read_struct_type (hp_type, dn_bufp, objfile); in hpread_type_lookup()
4919 return hpread_type_lookup (dn_bufp->dgenfield.field, objfile); in hpread_type_lookup()
4927 return hpread_type_lookup (dn_bufp->dvfunc.funcptr, objfile); in hpread_type_lookup()
4939 hpread_type_lookup (dn_bufp->dmodifier.type, objfile), in hpread_type_lookup()
4949 return hpread_read_function_type (hp_type, dn_bufp, objfile, 0); in hpread_type_lookup()
4952 return hpread_read_doc_function_type (hp_type, dn_bufp, objfile, 0); in hpread_type_lookup()
4959 return hpread_read_struct_type (hp_type, dn_bufp, objfile); in hpread_type_lookup()
4968 name = VT (objfile) + dn_bufp->dtempl_arg.name; in hpread_type_lookup()
4969 return hpread_read_templ_arg_type (hp_type, dn_bufp, objfile, name); in hpread_type_lookup()
4977 return hpread_read_function_type (hp_type, dn_bufp, objfile, 0); in hpread_type_lookup()
4983 return lookup_fundamental_type (objfile, FT_VOID); in hpread_type_lookup()
4994 return lookup_fundamental_type (objfile, FT_VOID); in hpread_type_lookup()
5000 sltpointer e_idx, struct objfile *objfile, in hpread_record_lines() argument
5007 sl_bufp = hpread_get_slt (s_idx, objfile); in hpread_record_lines()
5091 struct objfile *objfile, CORE_ADDR text_offset, in hpread_process_one_debug_symbol() argument
5098 int offset = ANOFFSET (section_offsets, SECT_OFF_TEXT (objfile)); in hpread_process_one_debug_symbol()
5099 int data_offset = ANOFFSET (section_offsets, SECT_OFF_DATA (objfile)); in hpread_process_one_debug_symbol()
5107 sym = (struct symbol *) obstack_alloc (&objfile->objfile_obstack, in hpread_process_one_debug_symbol()
5110 DEPRECATED_SYMBOL_NAME (sym) = obsavestring (name, strlen (name), &objfile->objfile_obstack); in hpread_process_one_debug_symbol()
5170 SL_INDEX (objfile) = dn_bufp->dsfile.address; in hpread_process_one_debug_symbol()
5179 SL_INDEX (objfile) = hpread_record_lines (current_subfile, in hpread_process_one_debug_symbol()
5180 SL_INDEX (objfile), in hpread_process_one_debug_symbol()
5182 objfile, offset); in hpread_process_one_debug_symbol()
5231 SL_INDEX (objfile) = dn_bufp->dmodule.address; in hpread_process_one_debug_symbol()
5256 SL_INDEX (objfile) = hpread_record_lines (current_subfile, in hpread_process_one_debug_symbol()
5257 SL_INDEX (objfile), in hpread_process_one_debug_symbol()
5259 objfile, offset); in hpread_process_one_debug_symbol()
5261 WITHIN_FUNCTION (objfile) = 1; in hpread_process_one_debug_symbol()
5262 CURRENT_FUNCTION_VALUE (objfile) = valu; in hpread_process_one_debug_symbol()
5273 SYMBOL_TYPE (sym) = hpread_read_function_type (hp_type, dn_bufp, objfile, 1); in hpread_process_one_debug_symbol()
5286 *(char *) (VT (objfile) + dn_bufp->dfunc.alias)) /* not a null string */ in hpread_process_one_debug_symbol()
5287 DEPRECATED_SYMBOL_NAME (sym) = VT (objfile) + dn_bufp->dfunc.alias; in hpread_process_one_debug_symbol()
5289 DEPRECATED_SYMBOL_NAME (sym) = VT (objfile) + dn_bufp->dfunc.name; in hpread_process_one_debug_symbol()
5294 (strcmp (VT (objfile) + dn_bufp->dfunc.name, "main") == 0)) in hpread_process_one_debug_symbol()
5295 DEPRECATED_SYMBOL_NAME (sym) = VT (objfile) + dn_bufp->dfunc.name; in hpread_process_one_debug_symbol()
5313 SYMBOL_INIT_DEMANGLED_NAME (sym, &objfile->objfile_obstack); in hpread_process_one_debug_symbol()
5314 if ((DEPRECATED_SYMBOL_NAME (sym) == VT (objfile) + dn_bufp->dfunc.alias) && in hpread_process_one_debug_symbol()
5330 basename = VT (objfile) + dn_bufp->dfunc.name; in hpread_process_one_debug_symbol()
5363 dn_bufp = hpread_get_lntt (++index, objfile); in hpread_process_one_debug_symbol()
5367 SL_INDEX (objfile) = hpread_record_lines (current_subfile, in hpread_process_one_debug_symbol()
5368 SL_INDEX (objfile), in hpread_process_one_debug_symbol()
5370 objfile, offset); in hpread_process_one_debug_symbol()
5371 SYMBOL_LINE (sym) = hpread_get_line (dn_bufp->dbegin.address, objfile); in hpread_process_one_debug_symbol()
5380 SL_INDEX (objfile) = hpread_record_lines (current_subfile, in hpread_process_one_debug_symbol()
5381 SL_INDEX (objfile), in hpread_process_one_debug_symbol()
5383 objfile, offset); in hpread_process_one_debug_symbol()
5385 WITHIN_FUNCTION (objfile) = 1; in hpread_process_one_debug_symbol()
5386 CURRENT_FUNCTION_VALUE (objfile) = valu; in hpread_process_one_debug_symbol()
5396 SYMBOL_TYPE (sym) = hpread_read_doc_function_type (hp_type, dn_bufp, objfile, 1); in hpread_process_one_debug_symbol()
5404 *(char *) (VT (objfile) + dn_bufp->ddocfunc.alias)) /* not a null string */ in hpread_process_one_debug_symbol()
5405 DEPRECATED_SYMBOL_NAME (sym) = VT (objfile) + dn_bufp->ddocfunc.alias; in hpread_process_one_debug_symbol()
5407 DEPRECATED_SYMBOL_NAME (sym) = VT (objfile) + dn_bufp->ddocfunc.name; in hpread_process_one_debug_symbol()
5412 (strcmp (VT (objfile) + dn_bufp->ddocfunc.name, "main") == 0)) in hpread_process_one_debug_symbol()
5413 DEPRECATED_SYMBOL_NAME (sym) = VT (objfile) + dn_bufp->ddocfunc.name; in hpread_process_one_debug_symbol()
5429 SYMBOL_INIT_DEMANGLED_NAME (sym, &objfile->objfile_obstack); in hpread_process_one_debug_symbol()
5431 if ((DEPRECATED_SYMBOL_NAME (sym) == VT (objfile) + dn_bufp->ddocfunc.alias) && in hpread_process_one_debug_symbol()
5447 basename = VT (objfile) + dn_bufp->ddocfunc.name; in hpread_process_one_debug_symbol()
5480 dn_bufp = hpread_get_lntt (++index, objfile); in hpread_process_one_debug_symbol()
5484 SL_INDEX (objfile) = hpread_record_lines (current_subfile, in hpread_process_one_debug_symbol()
5485 SL_INDEX (objfile), in hpread_process_one_debug_symbol()
5487 objfile, offset); in hpread_process_one_debug_symbol()
5488 SYMBOL_LINE (sym) = hpread_get_line (dn_bufp->dbegin.address, objfile); in hpread_process_one_debug_symbol()
5531 SL_INDEX (objfile) = hpread_record_lines (current_subfile, in hpread_process_one_debug_symbol()
5532 SL_INDEX (objfile), in hpread_process_one_debug_symbol()
5534 objfile, offset); in hpread_process_one_debug_symbol()
5536 valu = hpread_get_location (dn_bufp->dbegin.address, objfile); in hpread_process_one_debug_symbol()
5539 desc = hpread_get_scope_start (dn_bufp->dbegin.address, objfile); in hpread_process_one_debug_symbol()
5556 SL_INDEX (objfile) = hpread_record_lines (current_subfile, in hpread_process_one_debug_symbol()
5557 SL_INDEX (objfile), in hpread_process_one_debug_symbol()
5559 objfile, offset); in hpread_process_one_debug_symbol()
5585 objfile); in hpread_process_one_debug_symbol()
5592 new->start_addr, valu, objfile); in hpread_process_one_debug_symbol()
5593 WITHIN_FUNCTION (objfile) = 0; /* This may have to change for Pascal */ in hpread_process_one_debug_symbol()
5611 valu = hpread_get_location (dn_bufp->dend.address, objfile); in hpread_process_one_debug_symbol()
5621 new->start_addr, valu, objfile); in hpread_process_one_debug_symbol()
5647 valu = hpread_get_location (dn_bufp->dend.address, objfile); in hpread_process_one_debug_symbol()
5656 new->start_addr, valu, objfile); in hpread_process_one_debug_symbol()
5712 += hpread_adjust_stack_address (CURRENT_FUNCTION_VALUE (objfile)); in hpread_process_one_debug_symbol()
5716 SYMBOL_TYPE (sym) = hpread_type_lookup (dn_bufp->dfparam.type, objfile); in hpread_process_one_debug_symbol()
5734 if (is_in_import_list (DEPRECATED_SYMBOL_NAME (sym), objfile)) in hpread_process_one_debug_symbol()
5738 SYMBOL_TYPE (sym) = hpread_type_lookup (dn_bufp->dsvar.type, objfile); in hpread_process_one_debug_symbol()
5743 else if (WITHIN_FUNCTION (objfile)) in hpread_process_one_debug_symbol()
5756 if (objfile->flags & OBJF_SHARED) in hpread_process_one_debug_symbol()
5769 objfile_data (objfile, hppa_objfile_priv_data); in hpread_process_one_debug_symbol()
5797 += hpread_adjust_stack_address (CURRENT_FUNCTION_VALUE (objfile)); in hpread_process_one_debug_symbol()
5798 SYMBOL_TYPE (sym) = hpread_type_lookup (dn_bufp->ddvar.type, objfile); in hpread_process_one_debug_symbol()
5801 else if (WITHIN_FUNCTION (objfile)) in hpread_process_one_debug_symbol()
5811 SYMBOL_TYPE (sym) = hpread_type_lookup (dn_bufp->dconst.type, objfile); in hpread_process_one_debug_symbol()
5814 else if (WITHIN_FUNCTION (objfile)) in hpread_process_one_debug_symbol()
5825 SYMBOL_TYPE (sym) = hpread_type_lookup (dn_bufp->dtype.type, objfile); in hpread_process_one_debug_symbol()
5828 else if (WITHIN_FUNCTION (objfile)) in hpread_process_one_debug_symbol()
5849 SYMBOL_TYPE (sym) = hpread_type_lookup (dn_bufp->dtype.type, objfile); in hpread_process_one_debug_symbol()
5854 else if (WITHIN_FUNCTION (objfile)) in hpread_process_one_debug_symbol()
5881 if (dn_bufp->dtype.type.dnttp.index < LNTT_SYMCOUNT (objfile)) in hpread_process_one_debug_symbol()
5882 dn_bufp = hpread_get_lntt (dn_bufp->dtag.type.dnttp.index, objfile); in hpread_process_one_debug_symbol()
5894 newsym = (struct symbol *) obstack_alloc (&objfile->objfile_obstack, in hpread_process_one_debug_symbol()
5906 else if (WITHIN_FUNCTION (objfile)) in hpread_process_one_debug_symbol()
6035 dn_temp = hpread_get_lntt (dn_bufp->dclass_scope.type.dnttp.index, objfile); in hpread_process_one_debug_symbol()
6037 class_scope_name = VT (objfile) + dn_temp->dtag.name; in hpread_process_one_debug_symbol()
6044 SL_INDEX (objfile) = hpread_record_lines (current_subfile, in hpread_process_one_debug_symbol()
6045 SL_INDEX (objfile), in hpread_process_one_debug_symbol()
6047 objfile, offset); in hpread_process_one_debug_symbol()
6048 valu = hpread_get_location (dn_bufp->dclass_scope.address, objfile); in hpread_process_one_debug_symbol()
6050 desc = hpread_get_scope_start (dn_bufp->dclass_scope.address, objfile); in hpread_process_one_debug_symbol()
6211 hpread_get_scope_depth (union dnttentry *dn_bufp, struct objfile *objfile, in hpread_get_scope_depth() argument
6221 index = (((char *) dn_bufp) - LNTT (objfile)) / (sizeof (struct dntt_type_block)); in hpread_get_scope_depth()
6225 dn_tmp = hpread_get_lntt (index, objfile); in hpread_get_scope_depth()
6311 struct objfile *objfile) in hpread_get_next_skip_over_anon_unions() argument
6322 anon_type = hpread_type_lookup ((*fieldp)->dfield.type, objfile); in hpread_get_next_skip_over_anon_unions()
6325 name = VT (objfile) + (*fieldp)->dfield.name; in hpread_get_next_skip_over_anon_unions()
6328 *fieldp = hpread_get_lntt (field.dnttp.index, objfile); in hpread_get_next_skip_over_anon_unions()
6335 field = hpread_get_next_skip_over_anon_unions (TYPE_NFIELDS (anon_type), field, fieldp, objfile); in hpread_get_next_skip_over_anon_unions()