diff mbox

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

Message ID m3inzdsfms.fsf@sspiff.org
State New
Headers show

Commit Message

Doug Evans April 19, 2016, 4:54 p.m. UTC
Hi.

Committed this as obvious.
[more very old sandbox cleanups]

2016-04-19  Doug Evans  <xdje42@gmail.com>

	* symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
	All callers updated.
diff mbox

Patch

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);
 }