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.
This commit is contained in:
Michael Snyder 2003-06-04 00:25:03 +00:00
parent 5464543b5e
commit 0a48e7e826
3 changed files with 51 additions and 12 deletions

View File

@ -1,3 +1,9 @@
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.
2003-06-03 J. Brobecker <brobecker@gnat.com>
* 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 <kevinb@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set

View File

@ -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 */

View File

@ -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);