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  <palves@redhat.com>

	* 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.
This commit is contained in:
Pedro Alves 2018-04-16 12:50:03 +01:00
parent a2a79012fe
commit 8a3de5e1a3
10 changed files with 32 additions and 2499 deletions

View File

@ -1,3 +1,20 @@
2018-04-16 Pedro Alves <palves@redhat.com>
* 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.
2018-04-16 Pedro Alves <palves@redhat.com>
* MAINTAINERS: Remove m88k.

View File

@ -306,7 +306,6 @@ the native maintainer when resolving ABI issues.
score --target=score-elf
sh --target=sh-elf ,-Werror
--target=sh64-elf ,-Werror
sparc --target=sparc64-solaris2.10 ,-Werror
(--target=sparc-elf broken)

View File

@ -767,7 +767,6 @@ ALL_TARGET_OBS = \
sh-linux-tdep.o \
sh-nbsd-tdep.o \
sh-tdep.o \
sh64-tdep.o \
sol2-tdep.o \
solib-aix.o \
solib-darwin.o \
@ -1355,7 +1354,6 @@ HFILES_NO_SRCDIR = \
ser-unix.h \
serial.h \
sh-tdep.h \
sh64-tdep.h \
sim-regno.h \
skip.h \
sol2-tdep.h \
@ -2322,7 +2320,6 @@ ALLDEPFILES = \
sh-nbsd-nat.c \
sh-nbsd-tdep.c \
sh-tdep.c \
sh64-tdep.c \
sol2-tdep.c \
solib-aix.c \
solib-spu.c \

View File

@ -31,6 +31,9 @@ RiscV ELF riscv*-*-elf
* Removed targets and native configurations
m88k running OpenBSD m88*-*-openbsd*
SH-5/SH64 ELF sh64-*-elf*, SH-5/SH64 support in sh*
SH-5/SH64 running GNU/Linux SH-5/SH64 support in sh*-*-linux*
SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd*
*** Changes in GDB 8.1

View File

@ -541,7 +541,7 @@ score-*-*)
sh*-*-linux*)
# Target: GNU/Linux Super-H
gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o \
gdb_target_obs="sh-tdep.o sh-linux-tdep.o \
solib-svr4.o symfile-mem.o \
glibc-tdep.o linux-tdep.o"
gdb_sim=../sim/sh/libsim.a
@ -554,16 +554,11 @@ sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
;;
sh*-*-openbsd*)
# Target: OpenBSD/sh
gdb_target_obs="sh-tdep.o sh64-tdep.o sh-nbsd-tdep.o"
;;
sh64-*-elf*)
# Target: Renesas/Super-H 64 bit with simulator
gdb_target_obs="sh-tdep.o sh64-tdep.o"
gdb_sim=../sim/sh64/libsim.a
gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o"
;;
sh*)
# Target: Embedded Renesas Super-H processor
gdb_target_obs="sh-tdep.o sh64-tdep.o"
gdb_target_obs="sh-tdep.o"
gdb_sim=../sim/sh/libsim.a
;;

View File

@ -1786,10 +1786,6 @@ cooked_write_test (struct gdbarch *gdbarch)
&& gdbarch_ptr_bit (gdbarch) == 64
&& (regnum >= gdbarch_num_regs (gdbarch)
&& regnum <= gdbarch_num_regs (gdbarch) + 4))
|| (bfd_arch == bfd_arch_sh
/* FPSCR_C_REGNUM in sh64 is hard to test. */
&& gdbarch_bfd_arch_info (gdbarch)->mach == bfd_mach_sh5
&& regnum == 243)
|| (bfd_arch == bfd_arch_spu
/* SPU pseudo registers except SPU_SP_REGNUM are got by
TARGET_OBJECT_SPU. */

View File

@ -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

View File

@ -41,7 +41,6 @@
#include "objfiles.h"
#include "sh-tdep.h"
#include "sh64-tdep.h"
#include "elf-bfd.h"
#include "solib-svr4.h"
@ -2257,10 +2256,6 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
struct gdbarch *gdbarch;
struct gdbarch_tdep *tdep;
/* SH5 is handled entirely in sh64-tdep.c. */
if (info.bfd_arch_info->mach == bfd_mach_sh5)
return sh64_gdbarch_init (info, arches);
/* If there is already a candidate, use it. */
arches = gdbarch_list_lookup_by_info (arches, &info);
if (arches != NULL)

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +0,0 @@
/* Target-dependent definitions for Renesas Super-H, for GDB.
Copyright (C) 2012-2018 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SH64_TDEP_H
#define SH64_TDEP_H
extern gdbarch_init_ftype sh64_gdbarch_init;
#endif /* SH64_TDEP_H */