/* We put a pointer to this structure in the read_symtab_private field
of the psymtab. */
-struct symloc
+struct md_symloc
{
/* Index of the FDR that this psymtab represents. */
int fdr_idx;
enum language pst_language;
};
-#define PST_PRIVATE(p) ((struct symloc *)(p)->read_symtab_private)
+#define PST_PRIVATE(p) ((struct md_symloc *)(p)->read_symtab_private)
#define FDR_IDX(p) (PST_PRIVATE(p)->fdr_idx)
#define CUR_BFD(p) (PST_PRIVATE(p)->cur_bfd)
#define DEBUG_SWAP(p) (PST_PRIVATE(p)->debug_swap)
textlow = 0;
pst = new legacy_psymtab (fdr_name (fh), partial_symtabs,
objfile->per_bfd, textlow);
- pst->read_symtab_private = XOBNEW (&objfile->objfile_obstack, symloc);
- memset (pst->read_symtab_private, 0, sizeof (struct symloc));
+ pst->read_symtab_private = XOBNEW (&objfile->objfile_obstack, md_symloc);
+ memset (pst->read_symtab_private, 0, sizeof (struct md_symloc));
save_pst = pst;
FDR_IDX (pst) = f_idx;
/* Keep a backpointer to the file's symbols. */
psymtab->read_symtab_private
- = OBSTACK_ZALLOC (&objfile->objfile_obstack, symloc);
+ = OBSTACK_ZALLOC (&objfile->objfile_obstack, md_symloc);
CUR_BFD (psymtab) = cur_bfd;
DEBUG_SWAP (psymtab) = debug_swap;
DEBUG_INFO (psymtab) = debug_info;
/* We put a pointer to this structure in the read_symtab_private field
of the psymtab. */
-struct symloc
+struct xcoff_symloc
{
/* First symbol number for this file. */
unsigned *firstLine;
offset =
- ((struct symloc *) this_symtab_psymtab->read_symtab_private)->lineno_off;
+ ((struct xcoff_symloc *) this_symtab_psymtab->read_symtab_private)->lineno_off;
if (offset == 0)
goto return_after_cleanup;
start_compunit_symtab (objfile, filestring, NULL, file_start_addr,
pst_symtab_language);
record_debugformat (debugfmt);
- symnum = ((struct symloc *) pst->read_symtab_private)->first_symnum;
+ symnum = ((struct xcoff_symloc *) pst->read_symtab_private)->first_symnum;
max_symnum =
- symnum + ((struct symloc *) pst->read_symtab_private)->numsyms;
+ symnum + ((struct xcoff_symloc *) pst->read_symtab_private)->numsyms;
first_object_file_end = 0;
raw_symbol = xcoff->symtbl + symnum * local_symesz;
/* Read in all partial symtabs on which this one is dependent. */
pst->expand_dependencies (objfile);
- if (((struct symloc *) pst->read_symtab_private)->numsyms != 0)
+ if (((struct xcoff_symloc *) pst->read_symtab_private)->numsyms != 0)
{
/* Init stuff necessary for reading in symbols. */
stabsread_init ();
{
gdb_assert (!self->readin);
- if (((struct symloc *) self->read_symtab_private)->numsyms != 0
+ if (((struct xcoff_symloc *) self->read_symtab_private)->numsyms != 0
|| self->number_of_dependencies)
{
next_symbol_text_func = xcoff_next_symbol_text;
objfile->per_bfd, 0);
result->read_symtab_private =
- XOBNEW (&objfile->objfile_obstack, struct symloc);
- ((struct symloc *) result->read_symtab_private)->first_symnum = first_symnum;
+ XOBNEW (&objfile->objfile_obstack, struct xcoff_symloc);
+ ((struct xcoff_symloc *) result->read_symtab_private)->first_symnum = first_symnum;
result->legacy_read_symtab = xcoff_read_symtab;
result->legacy_expand_psymtab = xcoff_expand_psymtab;
int i;
if (capping_symbol_number != -1)
- ((struct symloc *) pst->read_symtab_private)->numsyms =
+ ((struct xcoff_symloc *) pst->read_symtab_private)->numsyms =
capping_symbol_number
- - ((struct symloc *) pst->read_symtab_private)->first_symnum;
- ((struct symloc *) pst->read_symtab_private)->lineno_off =
+ - ((struct xcoff_symloc *) pst->read_symtab_private)->first_symnum;
+ ((struct xcoff_symloc *) pst->read_symtab_private)->lineno_off =
first_fun_line_offset;
first_fun_line_offset = 0;
legacy_psymtab *subpst =
new legacy_psymtab (include_list[i], partial_symtabs, objfile->per_bfd);
- subpst->read_symtab_private = XOBNEW (&objfile->objfile_obstack, symloc);
- ((struct symloc *) subpst->read_symtab_private)->first_symnum = 0;
- ((struct symloc *) subpst->read_symtab_private)->numsyms = 0;
+ subpst->read_symtab_private = XOBNEW (&objfile->objfile_obstack, xcoff_symloc);
+ ((struct xcoff_symloc *) subpst->read_symtab_private)->first_symnum = 0;
+ ((struct xcoff_symloc *) subpst->read_symtab_private)->numsyms = 0;
/* We could save slight bits of space by only making one of these,
shared by the entire set of include files. FIXME-someday. */