symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.

gdb/ChangeLog:

	* symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
	All callers updated.
This commit is contained in:
Doug Evans 2016-04-19 09:52:45 -07:00
parent 85c10f77b7
commit d04c1a59f3
2 changed files with 11 additions and 7 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -282,9 +282,9 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile)
}
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;
@ -382,8 +382,7 @@ dump_symtab_1 (struct objfile *objfile, struct symtab *symtab,
}
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
@ -396,12 +395,12 @@ dump_symtab (struct objfile *objfile, struct symtab *symtab,
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
@ -449,7 +448,7 @@ maintenance_print_symbols (char *args, int from_tty)
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);
}