aboutsummaryrefslogtreecommitdiff
path: root/gdb/h8300-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2003-06-04 00:25:03 +0000
committerMichael Snyder <msnyder@vmware.com>2003-06-04 00:25:03 +0000
commit0a48e7e82632466952c5916cd4c22021c41fdf50 (patch)
treea71056e385e051ef7e91f38f5a9399ad4bf369c1 /gdb/h8300-tdep.c
parent5464543b5e6a38eba072b4361c920c383cd6dda1 (diff)
downloadgdb-0a48e7e82632466952c5916cd4c22021c41fdf50.zip
gdb-0a48e7e82632466952c5916cd4c22021c41fdf50.tar.gz
gdb-0a48e7e82632466952c5916cd4c22021c41fdf50.tar.bz2
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.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index ce642a3..282db38 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);