diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-01-10 20:30:32 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-04-23 23:06:54 +0100 |
commit | 541aad8ac923fa2d4a9d35fdf82b487b9f6e0ea8 (patch) | |
tree | dc6e8e50a7e3bf444c0c6cc6516e3eacf57c5a62 | |
parent | 29222070e410d441108895fcc3011f576bd05461 (diff) | |
download | gdb-541aad8ac923fa2d4a9d35fdf82b487b9f6e0ea8.zip gdb-541aad8ac923fa2d4a9d35fdf82b487b9f6e0ea8.tar.gz gdb-541aad8ac923fa2d4a9d35fdf82b487b9f6e0ea8.tar.bz2 |
gdb/vax: Use default gdbarch methods where possible
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:
* vax-tdep.c (vax_unwind_pc): Delete.
(vax_gdbarch_init): Don't register deleted function with gdbarch.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/vax-tdep.c | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fc97308..e43832c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> + * vax-tdep.c (vax_unwind_pc): Delete. + (vax_gdbarch_init): Don't register deleted function with gdbarch. + +2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> + * v850-tdep.c (v850_unwind_sp): Delete. (v850_unwind_pc): Delete. (v850_dummy_id): Delete. diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c index 6046c0e..e4a565d 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -437,11 +437,6 @@ vax_frame_num_args (struct frame_info *frame) return get_frame_memory_unsigned (frame, args, 1); } -static CORE_ADDR -vax_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame) -{ - return frame_unwind_register_unsigned (next_frame, VAX_PC_REGNUM); -} /* Initialize the current architecture based on INFO. If possible, re-use an @@ -502,8 +497,6 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_deprecated_function_start_offset (gdbarch, 2); set_gdbarch_believe_pcc_promotion (gdbarch, 1); - set_gdbarch_unwind_pc (gdbarch, vax_unwind_pc); - frame_base_set_default (gdbarch, &vax_frame_base); /* Hook in ABI-specific overrides, if they have been registered. */ |