* configure.in (mips*-*-vxworks*): New config.
authorStan Shebs <shebs@codesourcery.com>
Sun, 25 Feb 1996 22:05:00 +0000 (22:05 +0000)
committerStan Shebs <shebs@codesourcery.com>
Sun, 25 Feb 1996 22:05:00 +0000 (22:05 +0000)
* configure: Regenerated.

* config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
* remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
Remove, never used.

gdb/ChangeLog
gdb/config/mips/tm-vxmips.h [new file with mode: 0644]
gdb/config/mips/vxmips.mt [new file with mode: 0644]
gdb/configure
gdb/configure.in
gdb/remote-vxmips.c

index 830b400..81689a4 100644 (file)
@@ -1,3 +1,12 @@
+Sun Feb 25 13:58:33 1996  Stan Shebs  <shebs@andros.cygnus.com>
+
+       * configure.in (mips*-*-vxworks*): New config.
+       * configure: Regenerated.
+
+       * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
+       * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
+       Remove, never used.
+
 Sat Feb 24 12:30:28 1996  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
 
        * partial-stab.h (case N_FUN):  Function symbols generated
diff --git a/gdb/config/mips/tm-vxmips.h b/gdb/config/mips/tm-vxmips.h
new file mode 100644 (file)
index 0000000..392a929
--- /dev/null
@@ -0,0 +1,31 @@
+/* Target machine description for VxWorks MIPS's, for GDB, the GNU debugger.
+   Copyright 1996 Free Software Foundation, Inc.
+   Contributed by Cygnus Support.
+
+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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#define        GDBINIT_FILENAME        ".vxgdbinit"
+
+#define        DEFAULT_PROMPT          "(vxgdb) "
+
+#include "mips/tm-mips.h"
+
+/* FIXME: These are almost certainly wrong. */
+
+/* Number of registers in a ptrace_getregs call. */
+
+#define VX_NUM_REGS (NUM_REGS)
diff --git a/gdb/config/mips/vxmips.mt b/gdb/config/mips/vxmips.mt
new file mode 100644 (file)
index 0000000..a20cf96
--- /dev/null
@@ -0,0 +1,3 @@
+# Target: MIPS running VxWorks
+TDEPFILES= mips-tdep.o remote-vx.o remote-vxmips.o xdr_ld.o xdr_ptrace.o xdr_rdb.o
+TM_FILE= tm-vxmips.h
index c10c810..222e89f 100755 (executable)
@@ -3147,6 +3147,7 @@ mips*-*-mach3*)           gdb_target=mach3 ;;
 mips*-*-sysv4*)                gdb_target=mipsv4 ;;
 mips*-*-sysv*)         gdb_target=bigmips ;;
 mips*-*-riscos*)       gdb_target=bigmips ;;
+mips*-*-vxworks*)      gdb_target=vxmips ;;
 
 none-*-*)              gdb_target=none ;;
 
index b828499..78efdc4 100644 (file)
@@ -541,6 +541,7 @@ mips*-*-mach3*)             gdb_target=mach3 ;;
 mips*-*-sysv4*)                gdb_target=mipsv4 ;;
 mips*-*-sysv*)         gdb_target=bigmips ;;
 mips*-*-riscos*)       gdb_target=bigmips ;;
+mips*-*-vxworks*)       gdb_target=vxmips ;;
 
 none-*-*)              gdb_target=none ;;
 
index 4b96e25..c65ac01 100644 (file)
@@ -199,31 +199,3 @@ vx_write_register (regno)
                           PTRACE_SETFPREGS);
     }
 }
-
-/* Convert from an extended float to a double.
-   The extended float is stored as raw data pointed to by FROM.
-   Return the converted value as raw data in the double pointed to by TO.
-   NOTE: mips uses standard two word doubles.  */
-
-void
-vx_convert_to_virtual (regno, from, to)
-      int regno;
-      char *from;
-      char *to;
-{
-  bcopy (from, to, REGISTER_VIRTUAL_SIZE (regno));
-}
-
-/* The converse:  convert from a double to an extended float.
-   The double is stored as raw data pointed to by FROM.
-   Return the converted value as raw data in the extended
-   float pointed to by TO.  */
-
-void
-vx_convert_from_virtual (regno, from, to)
-     int regno;
-     char *from;
-     char *to;
-{
-  bcopy (from, to, REGISTER_VIRTUAL_SIZE (regno));
-}