+2016-04-19 Doug Evans <xdje42@gmail.com>
+
+ * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
+ All callers updated.
+
2016-04-19 Doug Evans <xdje42@gmail.com>
* source.c (is_regular_file): New arg errno_ptr.
}
static void
-dump_symtab_1 (struct objfile *objfile, struct symtab *symtab,
- struct ui_file *outfile)
+dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile)
{
+ struct objfile *objfile = SYMTAB_OBJFILE (symtab);
struct gdbarch *gdbarch = get_objfile_arch (objfile);
int i;
struct dict_iterator iter;
}
static void
-dump_symtab (struct objfile *objfile, struct symtab *symtab,
- struct ui_file *outfile)
+dump_symtab (struct symtab *symtab, struct ui_file *outfile)
{
/* Set the current language to the language of the symtab we're dumping
because certain routines used during dump_symtab() use the current
saved_lang = set_language (symtab->language);
- dump_symtab_1 (objfile, symtab, outfile);
+ dump_symtab_1 (symtab, outfile);
set_language (saved_lang);
}
else
- dump_symtab_1 (objfile, symtab, outfile);
+ dump_symtab_1 (symtab, outfile);
}
static void
QUIT;
if (symname == NULL
|| filename_cmp (symname, symtab_to_filename_for_display (s)) == 0)
- dump_symtab (objfile, s, outfile);
+ dump_symtab (s, outfile);
}
do_cleanups (cleanups);
}