diff options
author | Michael Snyder <msnyder@specifix.com> | 2003-06-04 00:25:03 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2003-06-04 00:25:03 +0000 |
commit | 48cfa53068106cbe8ab973e02f80cc1d146571e5 (patch) | |
tree | 623634856b8f057b651e75de88383c6dca091bf9 /gdb/h8300-tdep.c | |
parent | cc0d69223584d761ec757d2c0aa4eb3a00a10350 (diff) | |
download | gdb-48cfa53068106cbe8ab973e02f80cc1d146571e5.tar.gz |
2003-06-03 Michael Snyder <msnyder@redhat.com>
* config/h8300/tm-h8300.h (h8300sxmode): Declare.
* h8300-tdep.c (h8300_gdbarch_init): Set machine mode
for h8300sx.
Diffstat (limited to 'gdb/h8300-tdep.c')
-rw-r--r-- | gdb/h8300-tdep.c | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index ce642a30cc7..282db3863ac 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -1074,18 +1074,26 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) switch (info.bfd_arch_info->mach) { - case bfd_mach_h8300: - h8300smode = 0; - h8300hmode = 0; - break; - case bfd_mach_h8300h: - h8300smode = 0; - h8300hmode = 1; - break; - case bfd_mach_h8300s: - h8300smode = 1; - h8300hmode = 1; - break; + case bfd_mach_h8300: + h8300sxmode = 0; + h8300smode = 0; + h8300hmode = 0; + break; + case bfd_mach_h8300h: + h8300sxmode = 0; + h8300smode = 0; + h8300hmode = 1; + break; + case bfd_mach_h8300s: + h8300sxmode = 0; + h8300smode = 1; + h8300hmode = 1; + break; + case bfd_mach_h8300sx: + h8300sxmode = 1; + h8300smode = 1; + h8300hmode = 1; + break; } gdbarch = gdbarch_alloc (&info, 0); |