summaryrefslogtreecommitdiff
path: root/gdb/config/sparc
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-03 12:09:48 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-03 12:09:48 +0000
commitc62035d0fa467f81fd33178b5a77e78e79cdf2a8 (patch)
tree0eb1287778d6ceb0923ad7999a37284bf775b68f /gdb/config/sparc
parent7d58e5bc251628eb9dcd3e73d8ba1e3f72daa43d (diff)
downloadgdb-c62035d0fa467f81fd33178b5a77e78e79cdf2a8.tar.gz
* configure.tgt: Add back sparc-*-vxworks*.
* remote-vxsparc.c: Remove all includes except for "defs.h", "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h". Include "sparc-tdep.h". (SPARC_R_G1): New define. (vxsparc_gregset): New variable. (ext_format_sparc): Remove extern declaration. (vx_read_register): Rewrite to use sparc32_supply_gregset and sparc32_supply_fpregset. (vx_write_register): Rewrite to use sparc32_collect_gregset, sparc_collect_rwindow and sparc32_collect_fpregset. * config/sparc/tm-vxworks.h: New file, based on recently removed tm-vxsparc.h. * config/sparc/vxworks.mt: New file, based on recently removed vxworks.mt.
Diffstat (limited to 'gdb/config/sparc')
-rw-r--r--gdb/config/sparc/tm-vxworks.h31
-rw-r--r--gdb/config/sparc/vxworks.mt4
2 files changed, 35 insertions, 0 deletions
diff --git a/gdb/config/sparc/tm-vxworks.h b/gdb/config/sparc/tm-vxworks.h
new file mode 100644
index 00000000000..7b0474847c6
--- /dev/null
+++ b/gdb/config/sparc/tm-vxworks.h
@@ -0,0 +1,31 @@
+/* Target-dependent defenitions for VxWorks SPARC.
+
+ Copyright 1993, 1999, 2004 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. */
+
+#ifndef TM_VXWORKS_H
+#define TM_VXWORKS_H
+
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_TM
+
+/* Get generic VxWorks definitions. */
+#include "config/tm-vxworks.h"
+
+#endif /* tm-vxworks.h */
diff --git a/gdb/config/sparc/vxworks.mt b/gdb/config/sparc/vxworks.mt
new file mode 100644
index 00000000000..175f92ed981
--- /dev/null
+++ b/gdb/config/sparc/vxworks.mt
@@ -0,0 +1,4 @@
+# Target: VxWorks SPARC
+TDEPFILES= sparc-tdep.o \
+ remote-vx.o remote-vxsparc.o xdr_ld.o xdr_ptrace.o xdr_rdb.o
+TM_FILE= tm-vxworks.h