gdb/nds32: Use default gdbarch methods where possible
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 10 Jan 2019 18:53:31 +0000 (18:53 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 23 Apr 2019 21:50:25 +0000 (22:50 +0100)
commitca0ab0aa8194eda711cf52efe6c26cb821218476
treecb2b6af597ef40af63b9280171e8dcae4f94f6d9
parentc825904428f7c89a65eeb313b243f65e950a0a19
gdb/nds32: 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:

* nds32-tdep.c (nds32_dummy_id): Delete.
(nds32_unwind_pc): Delete.
(nds32_unwind_sp): Delete.
(nds32_gdbarch_init): Don't register deleted functions with
gdbarch.
gdb/ChangeLog
gdb/nds32-tdep.c