diff options
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/config/mips/tm-vxmips.h | 31 | ||||
-rw-r--r-- | gdb/config/mips/vxmips.mt | 3 | ||||
-rwxr-xr-x | gdb/configure | 1 | ||||
-rw-r--r-- | gdb/configure.in | 1 | ||||
-rw-r--r-- | gdb/remote-vxmips.c | 28 |
6 files changed, 45 insertions, 28 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 830b400..81689a4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 index 0000000..392a929 --- /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 0000000..a20cf96 --- /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 c10c810..222e89f 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 b828499..78efdc4 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 4b96e25..c65ac01 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)); -} |