* config/m88k/{delta88v4.mt,delta88v4.mh}: New files
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 23 Aug 1993 21:14:31 +0000 (21:14 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 23 Aug 1993 21:14:31 +0000 (21:14 +0000)
* config/m88k/delta88.mh: Fix comment.
* config/m88k/tm-delta88.h: Remove unused BCS define.
* config/m88k/{tm-delta88v4.h,xm-delta88v4.h,nm-delta88v4.h}:
New files.
* configure.in: Recognize m88*-motorola-sysv4*.
* m88k-nat.c: Always include sys/types.h; don't depend on USG.

gdb/ChangeLog
gdb/config/m88k/delta88.mh
gdb/config/m88k/delta88v4.mh
gdb/config/m88k/delta88v4.mt
gdb/config/m88k/nm-delta88v4.h
gdb/config/m88k/tm-delta88.h
gdb/config/m88k/tm-delta88v4.h
gdb/config/m88k/xm-delta88v4.h
gdb/configure.in
gdb/m88k-nat.c

index 33e4c7841d53ccd075943be61abf143cfa1792d8..7df730565e52d78cdbbfad1bed2247589e976d6c 100644 (file)
@@ -1,7 +1,17 @@
+Mon Aug 23 14:56:42 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * config/m88k/{delta88v4.mt,delta88v4.mh}: New files
+       * config/m88k/delta88.mh: Fix comment.
+       * config/m88k/tm-delta88.h: Remove unused BCS define.
+       * config/m88k/{tm-delta88v4.h,xm-delta88v4.h,nm-delta88v4.h}:
+       New files.
+       * configure.in: Recognize m88*-motorola-sysv4*.
+       * m88k-nat.c: Always include sys/types.h; don't depend on USG.
+
 Mon Aug 23 12:57:42 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
 
-       * mipsread.c (parse_symbol, parse_type, cross_ref):  Pass name of symbol
-       as an argument and use it in complaints.
+       * mipsread.c (parse_symbol, parse_type, cross_ref):  Pass name of
+       symbol as an argument and use it in complaints.
        * symmisc.c (dump_psymtab):  Dump filenames of dependencies.
 
 Mon Aug 23 1993  Sean Fagan  (sef@cygnus.com)
index ea51e5fcad3ddfcbfe1d039b231e31bc31589b51..409314308437c4fad9db01ab6caeae669e518efc 100644 (file)
@@ -1,4 +1,4 @@
-# Host: Motorola 88000 running DGUX
+# Host: Motorola 88k running SVR3
 XDEPFILES= 
 XM_FILE= xm-delta88.h
 NAT_FILE= nm-m88k.h
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5de1366df676d784a96556428aff97db8894b03b 100644 (file)
@@ -0,0 +1,12 @@
+# Host: Motorola 88k running SVR4
+XDEPFILES= 
+XM_FILE= xm-delta88v4.h
+NAT_FILE= nm-delta88v4.h
+NATDEPFILES= exec.o infptrace.o inftarg.o fork-child.o m88k-nat.o corelow.o \
+       core-svr4.o procfs.o solib.o
+REGEX=regex.o
+REGEX1=regex.o
+# Have to use /bin/nm because a bfd nm won't do the right thing
+MUNCH_DEFINE=MUNCH_NM=/bin/nm
+M_INSTALL=cp gdb.z $(ddestdir)/man/man1
+M_UNINSTALL = rm -f $(ddestdir)/man/man1
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c241ae43b4dc9df3ee5c1fa08c0500b27922c851 100644 (file)
@@ -0,0 +1,3 @@
+# Target: Motorola 88k running SVR4
+TDEPFILES= m88k-tdep.o m88k-pinsn.o
+TM_FILE= tm-delta88v4.h
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..2f707da68323b9cc553da6a5566188826f17ccad 100644 (file)
@@ -0,0 +1,21 @@
+/* Native machine description for Motorola Delta 88 box, for GDB.
+   Copyright 1986, 1987, 1988, 1989, 1990, 1991 Free Software Foundation, Inc.
+
+This file is part of GDB.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+#include "m88k/nm-m88k.h"
+#include "nm-sysv4.h"
index 513bbd35bf7b2cf8e2e5d3669cec25b035440dae..7ca46ddb665d573472bb972eb5002dfb817397cb 100644 (file)
@@ -19,9 +19,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "m88k/tm-m88k.h"
 
-/* BCS is a standard for binary compatibility.  This machine uses it.  */
-#if !defined (BCS)
-#define BCS 1
-#endif
-
 #define DELTA88
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..7dccb1176f8ab7fc414b9817a942304634ab52c2 100644 (file)
@@ -0,0 +1,23 @@
+/* Target machine description for Motorola Delta 88 box, for GDB.
+   Copyright 1986, 1987, 1988, 1989, 1990, 1991 Free Software Foundation, Inc.
+
+This file is part of GDB.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+#define DELTA88
+
+#include "m88k/tm-m88k.h"
+#include "tm-sysv4.h"
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..140ff0413038879c99bac33cedbe23740451b43d 100644 (file)
@@ -0,0 +1,22 @@
+/* Host machine description for Motorola Delta 88 box, for GDB.
+   Copyright 1986, 1987, 1988, 1989, 1990, 1991 Free Software Foundation, Inc.
+
+This file is part of GDB.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+#define HOST_BYTE_ORDER BIG_ENDIAN
+
+#include "xm-sysv4.h"
index 1a696338b28717ffc4aa6e3e69bd0f6fe236b9c0..46db11eb5b39012fdf0358001deb31484b63eb3b 100644 (file)
@@ -73,8 +73,10 @@ m68*-sun-sunos3*)    gdb_host=sun3os3 ;;
 m68*-sun-sunos4*)      gdb_host=sun3os4 ;;
 m68*-sun-*)            gdb_host=sun3os4 ;;
 
-m88k-motorola-*)       gdb_host=delta88 ;;
-m88k-*-*)              gdb_host=m88k ;;
+m88*-motorola-sysv4*)  gdb_host=delta88v4 ;;
+m88*-motorola-sysv*)   gdb_host=delta88 ;;
+# I suspect this is just used for DGUX
+m88*-*-*)              gdb_host=m88k ;;
 
 mips-dec-*)            gdb_host=decstation ;;
 mips-little-*)         gdb_host=littlemips ;;
@@ -231,8 +233,9 @@ m68*-*-sunos3*)             gdb_target=sun3os3 ;;
 m68*-*-sunos4*)                gdb_target=sun3os4 ;;
 m68*-*-vxworks*)       gdb_target=vxworks68 ;;
 
-m88k-motorola-*)       gdb_target=delta88 ;;
-m88k-*-*)              gdb_target=m88k ;;
+m88*-motorola-svr4*)   gdb_target=delta88r4 ;;
+m88*-motorola-*)       gdb_target=delta88 ;;
+m88*-*-*)              gdb_target=m88k ;;
 
 mips-big-*)            gdb_target=bigmips ;;
 mips-dec-*)            gdb_target=decstation ;;
index 189c18df686e55bc9bd1c3dee92113fc50649172..41cf84235f0e8405df24599642e2574dc06fa593 100644 (file)
@@ -21,10 +21,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "frame.h"
 #include "inferior.h"
 
-#ifdef USG
 #include <sys/types.h>
-#endif
-
 #include <sys/param.h>
 #include <sys/dir.h>
 #include <signal.h>
@@ -223,3 +220,57 @@ m88k_register_u_addr (blockend, regnum)
     }
 }
 
+#ifdef USE_PROC_FS
+
+#include <sys/procfs.h>
+
+/*  Given a pointer to a general register set in /proc format (gregset_t *),
+    unpack the register contents and supply them as gdb's idea of the current
+    register values. */
+
+void
+supply_gregset (gregsetp)
+     gregset_t *gregsetp;
+{
+    register int regi;
+    register greg_t *regp = (greg_t *) gregsetp;
+
+    for (regi=0; regi <= SP_REGNUM; regi++)
+       supply_register (regi, (char *) (regp + regi));
+
+    supply_register (SXIP_REGNUM, (char *) (regp + R_XIP));
+    supply_register (SNIP_REGNUM, (char *) (regp + R_NIP));
+    supply_register (SFIP_REGNUM, (char *) (regp + R_FIP));
+    supply_register (PSR_REGNUM, (char *) (regp + R_PSR));
+    supply_register (FPSR_REGNUM, (char *) (regp + R_FPSR));
+    supply_register (FPCR_REGNUM, (char *) (regp + R_FPCR));
+}
+
+void
+fill_gregset (gregsetp, regno)
+     gregset_t *gregsetp;
+     int regno;
+{
+    int regi;
+    register greg_t *regp = (greg_t *) gregsetp;
+    extern char registers[];
+
+    for (regi = 0 ; regi < R_R31 ; regi++)
+       if ((regno == -1) || (regno == regi))
+           *(regp + regi) = *(int *) &registers[REGISTER_BYTE(regi)];
+
+    if ((regno == -1) || (regno == SXIP_REGNUM))
+       *(regp + R_XIP) = *(int *) &registers[REGISTER_BYTE(SXIP_REGNUM)];
+    if ((regno == -1) || (regno == SNIP_REGNUM))
+       *(regp + R_NIP) = *(int *) &registers[REGISTER_BYTE(SNIP_REGNUM)];
+    if ((regno == -1) || (regno == SFIP_REGNUM))
+       *(regp + R_PSR) = *(int *) &registers[REGISTER_BYTE(PSR_REGNUM)];
+    if ((regno == -1) || (regno == PSR_REGNUM))
+       *(regp + R_PSR) = *(int *) &registers[REGISTER_BYTE(PSR_REGNUM)];
+    if ((regno == -1) || (regno == FPSR_REGNUM))
+       *(regp + R_FPSR) = *(int *) &registers[REGISTER_BYTE(FPSR_REGNUM)];
+    if ((regno == -1) || (regno == FPCR_REGNUM))
+       *(regp + R_FPCR) = *(int *) &registers[REGISTER_BYTE(FPCR_REGNUM)];
+}
+
+#endif /* USE_PROC_FS */
This page took 0.034998 seconds and 4 git commands to generate.