From: John Gilmore Date: Fri, 4 Oct 1991 06:46:30 +0000 (+0000) Subject: * dbxread.c, coffread.c: static-ize functions that were X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9bba3334a0c5925f924d0c0c1e61af2ff9da5e17;p=binutils-gdb.git * dbxread.c, coffread.c: static-ize functions that were gratuitiously external. (From Fred Fish.) --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac296d12ca7..6d0711d5fbd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Thu Oct 3 09:33:26 1991 John Gilmore (gnu at cygnus.com) + * dbxread.c, coffread.c: static-ize functions that were + gratuitiously external. (From Fred Fish.) + * c-exp.y: sym->class to SYMBOL_CLASS (sym). * dbxread.c (dbx_lookup_type): Keep doubling size of typevector diff --git a/gdb/coffread.c b/gdb/coffread.c index b37ef06360a..37c5af3a1ed 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -627,7 +627,7 @@ struct coff_symfile_info { static int text_bfd_scnum; -void +static void coff_symfile_init (sf) struct sym_fns *sf; { @@ -728,7 +728,7 @@ static bfd *symfile_bfd; shared libraries or add_file! */ /* ARGSUSED */ -void +static void coff_symfile_read (sf, addr, mainline) struct sym_fns *sf; CORE_ADDR addr; @@ -822,7 +822,7 @@ coff_symfile_read (sf, addr, mainline) select_source_symtab (0); /* FIXME, this might be too slow, see dbxread */ } -void +static void coff_new_init () { /* There seems to be nothing to do except free_all_symtabs and set diff --git a/gdb/dbxread.c b/gdb/dbxread.c index c201f43f8e9..b41a1ca21cf 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -491,7 +491,7 @@ static int header_file_prev_index; /* Free up old header file tables, and allocate new ones. We're reading a new symbol file now. */ -void +static void free_and_init_header_files () { register int i; @@ -1233,7 +1233,7 @@ pop_subfile () return name; } -void +static void record_misc_function (name, address, type) char *name; CORE_ADDR address; @@ -1271,7 +1271,7 @@ static bfd *symfile_bfd; MAINLINE is true if we are reading the main symbol table (as opposed to a shared lib or dynamically loaded file). */ -void +static void dbx_symfile_read (sf, addr, mainline) struct sym_fns *sf; CORE_ADDR addr; @@ -1338,7 +1338,7 @@ dbx_symfile_read (sf, addr, mainline) symbol file is specified (not just adding some symbols from another file, e.g. a shared library). */ -void +static void dbx_new_init () { /* Empty the hash table of global syms looking for values. */ @@ -1373,7 +1373,7 @@ dbx_new_init () be called unless this is an a.out (or very similar) file. FIXME, there should be a cleaner peephole into the BFD environment here. */ -void +static void dbx_symfile_init (sf) struct sym_fns *sf; { @@ -1562,7 +1562,7 @@ add_bincl_to_list (pst, name, instance) bincl in the list. Return the partial symtab associated with that header_file_location. */ -struct partial_symtab * +static struct partial_symtab * find_corresponding_bincl_psymtab (name, instance) char *name; int instance;