aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-12-18 19:21:53 +0000
committerTom Tromey <tromey@redhat.com>2012-12-18 19:21:53 +0000
commitc9630d9c13232b1d3316def15ae2cae6aac25263 (patch)
treebf5278a961479af7fa3599b211bc42bc6424dd52 /gdb
parentddd27bdefd50ed4b0c0f7e5aa183f4f87c5461e2 (diff)
downloadgdb-c9630d9c13232b1d3316def15ae2cae6aac25263.zip
gdb-c9630d9c13232b1d3316def15ae2cae6aac25263.tar.gz
gdb-c9630d9c13232b1d3316def15ae2cae6aac25263.tar.bz2
* minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
* minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't declare.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/minsyms.c6
-rw-r--r--gdb/minsyms.h6
3 files changed, 10 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 48c10b9..04dd5c2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2012-12-12 Tom Tromey <tromey@redhat.com>
+
+ * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
+ * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
+ declare.
+
2012-12-18 Joel Brobecker <brobecker@adacore.com>
* defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index a3a376c..d090a74 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -1302,9 +1302,11 @@ msymbols_sort (struct objfile *objfile)
build_minimal_symbol_hash_tables (objfile);
}
-/* See minsyms.h. */
+/* Check if PC is in a shared library trampoline code stub.
+ Return minimal symbol for the trampoline entry or NULL if PC is not
+ in a trampoline code stub. */
-struct minimal_symbol *
+static struct minimal_symbol *
lookup_solib_trampoline_symbol_by_pc (CORE_ADDR pc)
{
struct obj_section *section = find_pc_section (pc);
diff --git a/gdb/minsyms.h b/gdb/minsyms.h
index 8f0472f..92dd599 100644
--- a/gdb/minsyms.h
+++ b/gdb/minsyms.h
@@ -228,12 +228,6 @@ struct minimal_symbol *lookup_minimal_symbol_by_pc_section
struct minimal_symbol *lookup_minimal_symbol_by_pc (CORE_ADDR);
-/* Check if PC is in a shared library trampoline code stub.
- Return minimal symbol for the trampoline entry or NULL if PC is not
- in a trampoline code stub. */
-
-struct minimal_symbol *lookup_solib_trampoline_symbol_by_pc (CORE_ADDR);
-
/* Iterate over all the minimal symbols in the objfile OBJF which
match NAME. Both the ordinary and demangled names of each symbol
are considered. The caller is responsible for canonicalizing NAME,