From 0a48e7e82632466952c5916cd4c22021c41fdf50 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 4 Jun 2003 00:25:03 +0000 Subject: [PATCH] 2003-06-03 Michael Snyder * config/h8300/tm-h8300.h (h8300sxmode): Declare. * h8300-tdep.c (h8300_gdbarch_init): Set machine mode for h8300sx. --- gdb/ChangeLog | 30 ++++++++++++++++++++++++++++++ gdb/config/h8300/tm-h8300.h | 1 + gdb/h8300-tdep.c | 32 ++++++++++++++++++++------------ 3 files changed, 51 insertions(+), 12 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 815d8f7aeb4..7b727012f60 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-06-03 Michael Snyder + + * config/h8300/tm-h8300.h (h8300sxmode): Declare. + * h8300-tdep.c (h8300_gdbarch_init): Set machine mode + for h8300sx. + 2003-06-03 J. Brobecker * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile. @@ -2311,6 +2317,30 @@ td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t as types. + + + + + + + + + + + + + + + + + + + + + + + + 2003-04-16 Kevin Buettner * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set diff --git a/gdb/config/h8300/tm-h8300.h b/gdb/config/h8300/tm-h8300.h index 4e600575045..736e0f83432 100644 --- a/gdb/config/h8300/tm-h8300.h +++ b/gdb/config/h8300/tm-h8300.h @@ -28,6 +28,7 @@ GDB_TARGET_IS_H8300 in remote-e7000.c */ extern int h8300hmode; extern int h8300smode; +extern int h8300sxmode; #define GDB_TARGET_IS_H8300 /* Needed for remote.c */ 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); -- 2.30.2