aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-06-26 09:48:32 -0600
committerTom Tromey <tromey@adacore.com>2019-06-26 09:50:55 -0600
commit762c164d754fc456aa4764d2ed19cc4a3ec625fb (patch)
tree4b4ac3bd60fcb5b718abbbb6a9e328bd00340780 /gdb/minsyms.c
parentAArch64: Add missing CPSR flags (diff)
downloadbinutils-gdb-762c164d754fc456aa4764d2ed19cc4a3ec625fb.tar.gz
binutils-gdb-762c164d754fc456aa4764d2ed19cc4a3ec625fb.tar.bz2
binutils-gdb-762c164d754fc456aa4764d2ed19cc4a3ec625fb.zip
Remove lookup_minimal_symbol_solib_trampoline
lookup_minimal_symbol_solib_trampoline is unused, so this patch removes it. The last use was apparently removed in commit 61a12cfa ("Remove HPUX"). gdb/ChangeLog 2019-06-26 Tom Tromey <tromey@adacore.com> * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove. * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't declare.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index 9d29d880aab..e64e5df1a18 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -597,40 +597,6 @@ lookup_minimal_symbol_by_pc_name (CORE_ADDR pc, const char *name,
return NULL;
}
-/* See minsyms.h. */
-
-struct bound_minimal_symbol
-lookup_minimal_symbol_solib_trampoline (const char *name,
- struct objfile *objf)
-{
- struct minimal_symbol *msymbol;
- struct bound_minimal_symbol found_symbol = { NULL, NULL };
-
- unsigned int hash = msymbol_hash (name) % MINIMAL_SYMBOL_HASH_SIZE;
-
- for (objfile *objfile : current_program_space->objfiles ())
- {
- if (objf == NULL || objf == objfile
- || objf == objfile->separate_debug_objfile_backlink)
- {
- for (msymbol = objfile->per_bfd->msymbol_hash[hash];
- msymbol != NULL;
- msymbol = msymbol->hash_next)
- {
- if (strcmp (MSYMBOL_LINKAGE_NAME (msymbol), name) == 0 &&
- MSYMBOL_TYPE (msymbol) == mst_solib_trampoline)
- {
- found_symbol.objfile = objfile;
- found_symbol.minsym = msymbol;
- return found_symbol;
- }
- }
- }
- }
-
- return found_symbol;
-}
-
/* A helper function that makes *PC section-relative. This searches
the sections of OBJFILE and if *PC is in a section, it subtracts
the section offset and returns true. Otherwise it returns