From: Andrew Stubbs Date: Wed, 14 Oct 2009 10:17:31 +0000 (+0000) Subject: 2009-10-14 Andrew Stubbs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46e8a76b3b1536419c69b1033f21f3e4ebe4bdeb;p=binutils-gdb.git 2009-10-14 Andrew Stubbs * sh-tdep.c (sh_gdbarch_init): Add show_regs settings for bfd_mach_sh3_nommu, bfd_mach_sh2a_nofpu_or_sh3_nommu, bfd_mach_sh2a_or_sh3e, bfd_mach_sh2a_or_sh4, bfd_mach_sh4_nommu_nofpu, and bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu. Move bfd_mach_sh2a_or_sh4 to use the same configuration as bfd_mach_sh4. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11322ea47bf..6c3ef5fbeab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2009-10-14 Andrew Stubbs + + * sh-tdep.c (sh_gdbarch_init): Add show_regs settings for + bfd_mach_sh3_nommu, bfd_mach_sh2a_nofpu_or_sh3_nommu, + bfd_mach_sh2a_or_sh3e, bfd_mach_sh2a_or_sh4, bfd_mach_sh4_nommu_nofpu, + and bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu. + Move bfd_mach_sh2a_or_sh4 to use the same configuration as + bfd_mach_sh4. + 2009-10-13 Daniel Jacobowitz * arm-tdep.c (arm_push_dummy_call): Set the low bit of LR for diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index df979dc1bcc..3e509bf4ee5 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -2762,10 +2762,13 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) break; case bfd_mach_sh3: + case bfd_mach_sh3_nommu: + case bfd_mach_sh2a_nofpu_or_sh3_nommu: sh_show_regs = sh3_show_regs; break; case bfd_mach_sh3e: + case bfd_mach_sh2a_or_sh3e: sh_show_regs = sh3e_show_regs; break; @@ -2776,11 +2779,14 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) case bfd_mach_sh4: case bfd_mach_sh4a: + case bfd_mach_sh2a_or_sh4: sh_show_regs = sh4_show_regs; break; case bfd_mach_sh4_nofpu: + case bfd_mach_sh4_nommu_nofpu: case bfd_mach_sh4a_nofpu: + case bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu: sh_show_regs = sh4_nofpu_show_regs; break; @@ -2914,6 +2920,7 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) case bfd_mach_sh4: case bfd_mach_sh4a: + case bfd_mach_sh2a_or_sh4: set_gdbarch_register_name (gdbarch, sh_sh4_register_name); set_gdbarch_register_type (gdbarch, sh_sh4_register_type); set_gdbarch_fp0_regnum (gdbarch, 25); @@ -2928,7 +2935,6 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) case bfd_mach_sh4a_nofpu: case bfd_mach_sh4_nommu_nofpu: case bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu: - case bfd_mach_sh2a_or_sh4: set_gdbarch_register_name (gdbarch, sh_sh4_nofpu_register_name); break;