aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-01-10 20:20:25 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-04-23 22:50:30 +0100
commitd31f262c36a450fe64e5886228d585c75cfecf14 (patch)
tree6fb60ccea44073abed6cee16ab9dfb2f801852ae /gdb/sparc-tdep.c
parent6d14d64dfefef524398f45fd59c1443ebac624f6 (diff)
downloadgdb-d31f262c36a450fe64e5886228d585c75cfecf14.zip
gdb-d31f262c36a450fe64e5886228d585c75cfecf14.tar.gz
gdb-d31f262c36a450fe64e5886228d585c75cfecf14.tar.bz2
gdb/sparc: Use default_unwind_pc
Make use of the default gdbarch method gdbarch_unwind_pc where possible. I have not tested this change but, by inspecting the code, I believe the default methods are equivalent to the code being deleted. gdb/ChangeLog: * sparc-tdep.c (sparc_unwind_pc): Delete. (sparc32_gdbarch_init): Don't register deleted function with gdbarch.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index a155cfa..b75fe96 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1114,13 +1114,6 @@ sparc_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
return pc;
}
-static CORE_ADDR
-sparc_unwind_pc (struct gdbarch *gdbarch, struct frame_info *this_frame)
-{
- struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
- return frame_unwind_register_unsigned (this_frame, tdep->pc_regnum);
-}
-
/* Return PC of first real instruction of the function starting at
START_PC. */
@@ -1882,8 +1875,6 @@ sparc32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_dummy_id (gdbarch, sparc_dummy_id);
- set_gdbarch_unwind_pc (gdbarch, sparc_unwind_pc);
-
frame_base_set_default (gdbarch, &sparc32_frame_base);
/* Hook in the DWARF CFI frame unwinder. */