diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2022-04-28 11:14:57 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2022-10-18 14:16:10 +0200 |
commit | 6f96c196beccb6f30b78ef878b3eaa420dfaa687 (patch) | |
tree | e90134edf9833263fdf977274aa6dbcb5446d691 /gdb/hppa-tdep.c | |
parent | 2aab2438702dfb22d6fa0c5d8bef267f3d24638b (diff) | |
download | binutils-gdb-6f96c196beccb6f30b78ef878b3eaa420dfaa687.tar.gz |
gdb, hppa: remove unused hppa_lookup_stub_minimal_symbol
I stumbled over this while reviewing all objfiles traversals with regards
to impact of linker namespaces.
Recursive grep only finds two occurrences of hppa_lookup_stub_minimal_symbol:
- the declaration in hppa-tdep.h.
- the definition in hppa-tdep.c.
There appear to be no calls to this function. Remove it.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 9088225f206..e35e08b22c1 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -2509,37 +2509,6 @@ hppa_unwind_pc (struct gdbarch *gdbarch, frame_info_ptr next_frame) return pc & ~0x3; } -/* Return the minimal symbol whose name is NAME and stub type is STUB_TYPE. - Return NULL if no such symbol was found. */ - -struct bound_minimal_symbol -hppa_lookup_stub_minimal_symbol (const char *name, - enum unwind_stub_types stub_type) -{ - struct bound_minimal_symbol result; - - for (objfile *objfile : current_program_space->objfiles ()) - { - for (minimal_symbol *msym : objfile->msymbols ()) - { - if (strcmp (msym->linkage_name (), name) == 0) - { - struct unwind_table_entry *u; - - u = find_unwind_entry (msym->value_longest ()); - if (u != NULL && u->stub_unwind.stub_type == stub_type) - { - result.objfile = objfile; - result.minsym = msym; - return result; - } - } - } - } - - return result; -} - static void unwind_command (const char *exp, int from_tty) { |