aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2016-04-19 09:52:45 -0700
committerDoug Evans <xdje42@gmail.com>2016-04-19 09:52:45 -0700
commitd04c1a59f3b6ae23f16988961cd74b561ed6f8d6 (patch)
treecb15489cc5fe293091ca90fb33354b386d5ab513 /gdb/symmisc.c
parent85c10f77b70007a0c528bdc9dbba1add947b3085 (diff)
downloadgdb-d04c1a59f3b6ae23f16988961cd74b561ed6f8d6.zip
gdb-d04c1a59f3b6ae23f16988961cd74b561ed6f8d6.tar.gz
gdb-d04c1a59f3b6ae23f16988961cd74b561ed6f8d6.tar.bz2
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.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 88daf09..a0652ff 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -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);
}