gdb/sh: Use default gdbarch methods where possible
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 10 Jan 2019 20:17:00 +0000 (20:17 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 23 Apr 2019 21:50:29 +0000 (22:50 +0100)
commit6d14d64dfefef524398f45fd59c1443ebac624f6
treeed3ef9ec2751d2ed9a4b433ccb1178cade8efce8
parenta40dde9db56ffcea8c2b99e8c4e292ce64f64f9c
gdb/sh: Use default gdbarch methods where possible

Make use of the default gdbarch methods for gdbarch_dummy_id,
gdbarch_unwind_pc, and gdbarch_unwind_sp 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:

* sh-tdep.c (sh_unwind_sp): Delete.
(sh_unwind_pc): Delete.
(sh_dummy_id): Delete.
(sh_gdbarch_init): Don't register deleted functions with
gdbarch.
gdb/ChangeLog
gdb/sh-tdep.c