aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-04 06:46:30 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-04 06:46:30 +0000
commit9bba3334a0c5925f924d0c0c1e61af2ff9da5e17 (patch)
treea78639e0d02c9353cb18c2423a31be258d3fbe6e
parent5b0a744f98759f3b51b4362f25b497d0da9c16d1 (diff)
downloadgdb-9bba3334a0c5925f924d0c0c1e61af2ff9da5e17.zip
gdb-9bba3334a0c5925f924d0c0c1e61af2ff9da5e17.tar.gz
gdb-9bba3334a0c5925f924d0c0c1e61af2ff9da5e17.tar.bz2
* dbxread.c, coffread.c: static-ize functions that were
gratuitiously external. (From Fred Fish.)
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/coffread.c6
-rw-r--r--gdb/dbxread.c12
3 files changed, 12 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ac296d1..6d0711d 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 b37ef06..37c5af3 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 c201f43..b41a1ca 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;