This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH][SH] Add missing architectures
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Date: Wed, 08 Mar 2006 17:23:45 +0000
- Subject: [PATCH][SH] Add missing architectures
Hi,
A few architectures known by BFD are not known by GDB. I do not know why
the dsp architectures are missing, but the others are missing because
they were only recently added.
The attached patch properly classifies them such that the correct
register set is displayed.
Andrew Stubbs
2006-03-08 Andrew Stubbs <andrew.stubbs@st.com>
* sh-tdep.c (sh_gdbarch_init): Add missing architectures.
Index: src/gdb/sh-tdep.c
===================================================================
--- src.orig/gdb/sh-tdep.c 2006-03-08 14:38:33.000000000 +0000
+++ src/gdb/sh-tdep.c 2006-03-08 14:55:16.000000000 +0000
@@ -2541,10 +2541,13 @@ sh_gdbarch_init (struct gdbarch_info inf
break;
case bfd_mach_sh3:
+ case bfd_mach_sh3_nommu:
+ case bfd_mach_sh2a_nofpu_or_sh3_nommu:
set_gdbarch_register_name (gdbarch, sh_sh3_register_name);
break;
case bfd_mach_sh3e:
+ case bfd_mach_sh2a_or_sh3e:
/* doubles on sh2e and sh3e are actually 4 byte. */
set_gdbarch_double_bit (gdbarch, 4 * TARGET_CHAR_BIT);
@@ -2574,6 +2577,9 @@ sh_gdbarch_init (struct gdbarch_info inf
case bfd_mach_sh4_nofpu:
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;