aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2018-12-27 11:56:03 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-02-27 16:54:44 +0200
commitf4bc7d2cde9189249d41ac9c63235c128da4d2f2 (patch)
treef746dcf041892158f2bafad7582ca578be141322 /gdb
parent9734a586671fa95a06a2e10323c14d0157805057 (diff)
downloadgdb-f4bc7d2cde9189249d41ac9c63235c128da4d2f2.zip
gdb-f4bc7d2cde9189249d41ac9c63235c128da4d2f2.tar.gz
gdb-f4bc7d2cde9189249d41ac9c63235c128da4d2f2.tar.bz2
gdb/hppa: Use default gdbarch method default_dummy_id.
Make use of the default gdbarch method for gdbarch_dummy_id. I have not tested this change but, by inspecting the code, I believe the default method is equivalent to the code being deleted. gdb/ChangeLog: * gdb/hppa-tdep.c (hppa_dummy_id): Delete. (hppa_gdbarch_init): Don't register deleted functions with gdbarch.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/hppa-tdep.c9
2 files changed, 6 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a4a1f21..2006a02 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
+ * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
+ (hppa_gdbarch_init): Don't register deleted functions with
+ gdbarch.
+
+2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
+
* gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
(h8300_unwind_sp): Delete.
(h8300_dummy_id): Delete.
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 866e6cf..7fed349 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -2505,14 +2505,6 @@ static const struct frame_unwind hppa_stub_frame_unwind = {
hppa_stub_unwind_sniffer
};
-static struct frame_id
-hppa_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
-{
- return frame_id_build (get_frame_register_unsigned (this_frame,
- HPPA_SP_REGNUM),
- get_frame_pc (this_frame));
-}
-
CORE_ADDR
hppa_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame)
{
@@ -3156,7 +3148,6 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_pseudo_register_read (gdbarch, hppa_pseudo_register_read);
/* Frame unwind methods. */
- set_gdbarch_dummy_id (gdbarch, hppa_dummy_id);
set_gdbarch_unwind_pc (gdbarch, hppa_unwind_pc);
/* Hook in ABI-specific overrides, if they have been registered. */