This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: make add_minsym_to_hash_table static
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 19 Dec 2011 09:10:53 -0700
- Subject: FYI: make add_minsym_to_hash_table static
I'm checking this in on the trunk.
I noticed recently that there is no reason to export
add_minsym_to_hash_table. This makes it static.
Tested by rebuilding.
Tom
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.
Index: minsyms.c
===================================================================
RCS file: /cvs/src/src/gdb/minsyms.c,v
retrieving revision 1.85
diff -u -r1.85 minsyms.c
--- minsyms.c 6 Dec 2011 18:54:39 -0000 1.85
+++ minsyms.c 19 Dec 2011 16:10:15 -0000
@@ -111,7 +111,7 @@
}
/* 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)
{
Index: symtab.h
===================================================================
RCS file: /cvs/src/src/gdb/symtab.h,v
retrieving revision 1.193
diff -u -r1.193 symtab.h
--- symtab.h 6 Dec 2011 18:54:39 -0000 1.193
+++ symtab.h 19 Dec 2011 16:10:15 -0000
@@ -1038,10 +1038,6 @@
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 *);