diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2009-10-14 10:17:31 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2009-10-14 10:17:31 +0000 |
commit | 46e8a76b3b1536419c69b1033f21f3e4ebe4bdeb (patch) | |
tree | 4819b7a0a59c9241f9b06607943aaf2f4789950f /gdb | |
parent | f88dc410a7060a2e6207020c40321ab786519b2d (diff) | |
download | gdb-46e8a76b3b1536419c69b1033f21f3e4ebe4bdeb.zip gdb-46e8a76b3b1536419c69b1033f21f3e4ebe4bdeb.tar.gz gdb-46e8a76b3b1536419c69b1033f21f3e4ebe4bdeb.tar.bz2 |
2009-10-14 Andrew Stubbs <ams@codesourcery.com>
* 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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/sh-tdep.c | 8 |
2 files changed, 16 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11322ea..6c3ef5f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2009-10-14 Andrew Stubbs <ams@codesourcery.com> + + * 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 <dan@codesourcery.com> * 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 df979dc..3e509bf 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; |