From 8fa6fcf829ba167f8e10e4a1a25d09a378aed926 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Sun, 25 Feb 1996 22:05:00 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 9 +++++++++ gdb/config/mips/tm-vxmips.h | 31 +++++++++++++++++++++++++++++++ gdb/config/mips/vxmips.mt | 3 +++ gdb/configure | 1 + gdb/configure.in | 1 + gdb/remote-vxmips.c | 28 ---------------------------- 6 files changed, 45 insertions(+), 28 deletions(-) create mode 100644 gdb/config/mips/tm-vxmips.h create mode 100644 gdb/config/mips/vxmips.mt diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 830b40016c..81689a4bc0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +Sun Feb 25 13:58:33 1996 Stan Shebs + + * 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 index 0000000000..392a929c20 --- /dev/null +++ b/gdb/config/mips/tm-vxmips.h @@ -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 index 0000000000..a20cf96ab7 --- /dev/null +++ b/gdb/config/mips/vxmips.mt @@ -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 diff --git a/gdb/configure b/gdb/configure index c10c810a8b..222e89f615 100755 --- a/gdb/configure +++ b/gdb/configure @@ -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 ;; diff --git a/gdb/configure.in b/gdb/configure.in index b828499b83..78efdc4bd6 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -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 ;; diff --git a/gdb/remote-vxmips.c b/gdb/remote-vxmips.c index 4b96e25edd..c65ac015ea 100644 --- a/gdb/remote-vxmips.c +++ b/gdb/remote-vxmips.c @@ -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)); -} -- 2.34.1