X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fsh-linux-tdep.c;h=a4684e65da79f47cf7972ae3fc52dc08dbaad2c7;hb=cf950fd4dd4581849a445a76b57514d72074927d;hp=4f06a0e54958b7655ddf52562b4ee28d334d1dff;hpb=e2882c85786571175a0b0bfc3bcd2f14620b1ea3;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c index 4f06a0e549..a4684e65da 100644 --- a/gdb/sh-linux-tdep.c +++ b/gdb/sh-linux-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for GNU/Linux Super-H. - Copyright (C) 2005-2018 Free Software Foundation, Inc. + Copyright (C) 2005-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -29,6 +29,7 @@ #include "glibc-tdep.h" #include "sh-tdep.h" #include "linux-tdep.h" +#include "gdbarch.h" #define REGSx16(base) \ {(base), 0}, \ @@ -194,22 +195,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