aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-12-19 16:11:14 +0000
committerTom Tromey <tromey@redhat.com>2011-12-19 16:11:14 +0000
commit984ac464433aa838ae9e305e216f0d084a8b550f (patch)
tree460d49f8f51481c9b2b514dfb44fd990cc764a63 /gdb
parentab76eeafa578ca7e301e3aa014e4ed643e32ec2e (diff)
downloadgdb-984ac464433aa838ae9e305e216f0d084a8b550f.zip
gdb-984ac464433aa838ae9e305e216f0d084a8b550f.tar.gz
gdb-984ac464433aa838ae9e305e216f0d084a8b550f.tar.bz2
* symtab.h (add_minsym_to_hash_table): Don't declare.
* minsyms.c (add_minsym_to_hash_table): Now static.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/minsyms.c2
-rw-r--r--gdb/symtab.h4
3 files changed, 6 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 68267a3..c433ef1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-19 Tom Tromey <tromey@redhat.com>
+
+ * symtab.h (add_minsym_to_hash_table): Don't declare.
+ * minsyms.c (add_minsym_to_hash_table): Now static.
+
2011-12-19 Joel Brobecker <brobecker@adacore.com>
* elfread.c (elf_symtab_read): Ignore undefined symbols with
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index f90f036..8ac5014 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -111,7 +111,7 @@ msymbol_hash (const char *string)
}
/* Add the minimal symbol SYM to an objfile's minsym hash table, TABLE. */
-void
+static void
add_minsym_to_hash_table (struct minimal_symbol *sym,
struct minimal_symbol **table)
{
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 7b52c88..90153ed 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1038,10 +1038,6 @@ extern unsigned int msymbol_hash (const char *);
extern struct objfile * msymbol_objfile (struct minimal_symbol *sym);
-extern void
-add_minsym_to_hash_table (struct minimal_symbol *sym,
- struct minimal_symbol **table);
-
extern struct minimal_symbol *lookup_minimal_symbol (const char *,
const char *,
struct objfile *);