diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
commit | fba45db2faf619e71856ee38ec63949c0ef6903e (patch) | |
tree | 107efc21d2b12f54d84b59e75251449e3d5fd096 /gdb/symmisc.c | |
parent | 29e6d33b03a5e39540d17bc8235573b1dac13341 (diff) | |
download | gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.zip gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.gz gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 70 |
1 files changed, 22 insertions, 48 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 1f46bc7..21bc3d4 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -82,9 +82,7 @@ static void free_symtab_block (struct objfile *, struct block *); /* Free a struct block <- B and all the symbols defined in that block. */ static void -free_symtab_block (objfile, b) - struct objfile *objfile; - struct block *b; +free_symtab_block (struct objfile *objfile, struct block *b) { register int i, n; n = BLOCK_NSYMS (b); @@ -105,8 +103,7 @@ free_symtab_block (objfile, b) It is s->free_code that says which alternative to use. */ void -free_symtab (s) - register struct symtab *s; +free_symtab (register struct symtab *s) { register int i, n; register struct blockvector *bv; @@ -155,7 +152,7 @@ free_symtab (s) } void -print_symbol_bcache_statistics () +print_symbol_bcache_statistics (void) { struct objfile *objfile; @@ -169,7 +166,7 @@ print_symbol_bcache_statistics () } void -print_objfile_statistics () +print_objfile_statistics (void) { struct objfile *objfile; @@ -208,8 +205,7 @@ print_objfile_statistics () } static void -dump_objfile (objfile) - struct objfile *objfile; +dump_objfile (struct objfile *objfile) { struct symtab *symtab; struct partial_symtab *psymtab; @@ -265,9 +261,7 @@ dump_objfile (objfile) /* Print minimal symbols from this objfile. */ static void -dump_msymbols (objfile, outfile) - struct objfile *objfile; - struct ui_file *outfile; +dump_msymbols (struct objfile *objfile, struct ui_file *outfile) { struct minimal_symbol *msymbol; int index; @@ -341,10 +335,8 @@ dump_msymbols (objfile, outfile) } static void -dump_psymtab (objfile, psymtab, outfile) - struct objfile *objfile; - struct partial_symtab *psymtab; - struct ui_file *outfile; +dump_psymtab (struct objfile *objfile, struct partial_symtab *psymtab, + struct ui_file *outfile) { int i; @@ -410,10 +402,8 @@ dump_psymtab (objfile, psymtab, outfile) } static void -dump_symtab (objfile, symtab, outfile) - struct objfile *objfile; - struct symtab *symtab; - struct ui_file *outfile; +dump_symtab (struct objfile *objfile, struct symtab *symtab, + struct ui_file *outfile) { register int i, j; int len, blen; @@ -500,9 +490,7 @@ dump_symtab (objfile, symtab, outfile) } void -maintenance_print_symbols (args, from_tty) - char *args; - int from_tty; +maintenance_print_symbols (char *args, int from_tty) { char **argv; struct ui_file *outfile; @@ -557,8 +545,7 @@ Arguments missing: an output file name and an optional symbol file name"); 1 for success. */ static int -print_symbol (args) - PTR args; +print_symbol (PTR args) { struct symbol *symbol = ((struct print_symbol_args *) args)->symbol; int depth = ((struct print_symbol_args *) args)->depth; @@ -738,9 +725,7 @@ print_symbol (args) } void -maintenance_print_psymbols (args, from_tty) - char *args; - int from_tty; +maintenance_print_psymbols (char *args, int from_tty) { char **argv; struct ui_file *outfile; @@ -789,11 +774,8 @@ maintenance_print_psymbols (args, from_tty) } static void -print_partial_symbols (p, count, what, outfile) - struct partial_symbol **p; - int count; - char *what; - struct ui_file *outfile; +print_partial_symbols (struct partial_symbol **p, int count, char *what, + struct ui_file *outfile) { fprintf_filtered (outfile, " %s partial symbols:\n", what); while (count-- > 0) @@ -887,9 +869,7 @@ print_partial_symbols (p, count, what, outfile) } void -maintenance_print_msymbols (args, from_tty) - char *args; - int from_tty; +maintenance_print_msymbols (char *args, int from_tty) { char **argv; struct ui_file *outfile; @@ -938,9 +918,7 @@ maintenance_print_msymbols (args, from_tty) } void -maintenance_print_objfiles (ignore, from_tty) - char *ignore; - int from_tty; +maintenance_print_objfiles (char *ignore, int from_tty) { struct objfile *objfile; @@ -955,9 +933,7 @@ maintenance_print_objfiles (ignore, from_tty) /* Check consistency of psymtabs and symtabs. */ void -maintenance_check_symtabs (ignore, from_tty) - char *ignore; - int from_tty; +maintenance_check_symtabs (char *ignore, int from_tty) { register struct symbol *sym; register struct partial_symbol **psym; @@ -1042,8 +1018,7 @@ maintenance_check_symtabs (ignore, from_tty) /* Return the nexting depth of a block within other blocks in its symtab. */ static int -block_depth (block) - struct block *block; +block_depth (struct block *block) { register int i = 0; while ((block = BLOCK_SUPERBLOCK (block)) != NULL) @@ -1059,9 +1034,8 @@ block_depth (block) be freed in free_objfile(). */ void -extend_psymbol_list (listp, objfile) - register struct psymbol_allocation_list *listp; - struct objfile *objfile; +extend_psymbol_list (register struct psymbol_allocation_list *listp, + struct objfile *objfile) { int new_size; if (listp->size == 0) @@ -1086,7 +1060,7 @@ extend_psymbol_list (listp, objfile) /* Do early runtime initializations. */ void -_initialize_symmisc () +_initialize_symmisc (void) { std_in = stdin; std_out = stdout; |