From 8a3de5e1a3fb7bdf89195388f127ecf429294f6f Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 16 Apr 2018 12:50:03 +0100 Subject: gdb: Remove support for SH-5/SH64 Since bfd dropped support for SH-5, there's no point in keeping it in GDB either. This restores --enable-targets=all builds. gdb/ChangeLog: 2018-04-16 Pedro Alves * MAINTAINERS (sh): Remove. * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. (HFILES_NO_SRCDIR): Remove sh64-tdep.h. (ALLDEPFILES): Remove sh64-tdep.c. * NEWS: Mentions that support for SH-5/SH64 is removed. * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. (sh*-*-openbsd*): Ditto. (sh64-*-elf*): Remove. (sh*): Remove. * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. * sh-tdep.c: No longer include "sh64-tdep.h". (sh_gdbarch_init): Remove reference to bfd_mach_sh5. * sh64-tdep.c, sh64-tdep.h: Remove files. --- gdb/sh-linux-tdep.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'gdb/sh-linux-tdep.c') diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c index 4f06a0e..db93967 100644 --- a/gdb/sh-linux-tdep.c +++ b/gdb/sh-linux-tdep.c @@ -194,22 +194,17 @@ sh_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_fetch_tls_load_module_address (gdbarch, svr4_fetch_objfile_link_map); - /* Core files and signal handler frame unwinding are supported for - 32-bit SH only, at present. */ - if (info.bfd_arch_info->mach != bfd_mach_sh5) - { - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); + struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - /* Remember regset characteristics. The sizes should match - elf_gregset_t and elf_fpregset_t from Linux. */ - tdep->core_gregmap = (struct sh_corefile_regmap *)gregs_table; - tdep->sizeof_gregset = 92; - tdep->core_fpregmap = (struct sh_corefile_regmap *)fpregs_table; - tdep->sizeof_fpregset = 136; + /* Remember regset characteristics. The sizes should match + elf_gregset_t and elf_fpregset_t from Linux. */ + tdep->core_gregmap = (struct sh_corefile_regmap *) gregs_table; + tdep->sizeof_gregset = 92; + tdep->core_fpregmap = (struct sh_corefile_regmap *) fpregs_table; + tdep->sizeof_fpregset = 136; - tramp_frame_prepend_unwinder (gdbarch, &sh_linux_sigreturn_tramp_frame); - tramp_frame_prepend_unwinder (gdbarch, &sh_linux_rt_sigreturn_tramp_frame); - } + tramp_frame_prepend_unwinder (gdbarch, &sh_linux_sigreturn_tramp_frame); + tramp_frame_prepend_unwinder (gdbarch, &sh_linux_rt_sigreturn_tramp_frame); } void -- cgit v1.1