This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to add i386-*-vxworks* and powerpc-*-vxworks* targets


This patch adds support for i386-*-vxworks* and powerpc-*-vxworks*
targets to GDB.

It does not add support for the RDB protocol which is currently
supported by the other vxworks targets supported by GDB, nor does it
add support for the newer WDB or WTX protocols.  But it does get the
config goop out of the way while I finish up the latter.  It is still
useful as-is if someone wants to write a GDB remote protocol agent to
replace the RDB or WDB agents in the VxWorks kernel.

	--jtc

1999-07-13  J.T. Conklin  <jtc@redback.com>

	* config.bfd (i[3456]86-*-vxworks*, powerpc-*-vxworks*): New
 	targets.

1999-07-13  J.T. Conklin  <jtc@redback.com>

	* configure.tgt (i[3456]86-*-vxworks*): New target.
	* config/i386/vxworks.mt: New file, x86 VxWorks target
	* config/i386/tm-vxworks.h: New file.

	* configure.tgt (powerpc-*-vxworks*): New target.
	* config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
	* config/powerpc/tm-vxworks.h: New file.

Index: gdb/bfd/config.bfd
diff -c gdb/bfd/config.bfd:1.1.1.4 gdb/bfd/config.bfd:1.4
*** gdb/bfd/config.bfd:1.1.1.4	Tue Jul 13 16:44:05 1999
--- gdb/bfd/config.bfd	Tue Jul 13 17:16:24 1999
***************
*** 314,319 ****
--- 314,322 ----
    i[3456]86-*-aout* | i[3456]86*-*-vsta*)
      targ_defvec=i386aout_vec
      ;;
+   i[3456]86-*-vxworks*)
+     targ_defvec=i386aout_vec
+     ;;
  
    i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
      targ_defvec=i860coff_vec
***************
*** 577,582 ****
--- 580,588 ----
    powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
      targ_defvec=bfd_powerpcle_pe_vec
      targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
+     ;;
+   powerpc-*-vxworks*)
+     targ_defvec=bfd_elf32_powerpc_vec
      ;;
  
    rs6000-*-*)
Index: gdb/gdb/configure.tgt
diff -c gdb/gdb/configure.tgt:1.1.1.5 gdb/gdb/configure.tgt:1.5
*** gdb/gdb/configure.tgt:1.1.1.5	Tue Jul 13 16:36:41 1999
--- gdb/gdb/configure.tgt	Tue Jul 13 17:15:31 1999
***************
*** 107,112 ****
--- 107,113 ----
  		configdirs="${configdirs} nlm" ;;
  i[3456]86-*-osf1mk*)	gdb_target=i386mk ;;
  i[3456]86-*-cygwin*)	gdb_target=cygwin  ;;
+ i[3456]86-*-vxworks*)	gdb_target=vxworks ;;
  
  i960-*-bout*)		gdb_target=vxworks960 ;;
  i960-nindy-coff*)	gdb_target=nindy960 ;;
***************
*** 223,228 ****
--- 224,230 ----
  			else
  			  gdb_target=ppcle-eabi
  			fi ;;
+ powerpc-*-vxworks*)	gdb_target=vxworks ;;
  
  # OBSOLETE pyramid-*-*)		gdb_target=pyramid ;;
  
Index: gdb/gdb/config/i386/tm-vxworks.h
diff -c /dev/null gdb/gdb/config/i386/tm-vxworks.h:1.2
*** /dev/null	Tue Jul 13 17:17:34 1999
--- gdb/gdb/config/i386/tm-vxworks.h	Fri Jul  9 12:36:26 1999
***************
*** 0 ****
--- 1,27 ----
+ /* Target machine description for VxWorks on the 80[3456]86,
+    for GDB, the GNU debugger.
+    Copyright (C) 1999 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.  */
+ 
+ #ifndef TM_VXWORKS_H
+ #define TM_VXWORKS_H
+ 
+ #include "i386/tm-i386v.h"
+ #include "tm-vxworks.h"
+ 
+ #endif /* ifndef TM_VXWORKS_H */
Index: gdb/gdb/config/i386/vxworks.mt
diff -c /dev/null gdb/gdb/config/i386/vxworks.mt:1.1
*** /dev/null	Tue Jul 13 17:17:34 1999
--- gdb/gdb/config/i386/vxworks.mt	Thu Jul  8 10:53:48 1999
***************
*** 0 ****
--- 1,4 ----
+ # Target: i386 running VxWorks
+ TDEPFILES= i386-tdep.o i387-tdep.o 
+ TM_FILE= tm-vxworks.h
+ 
Index: gdb/gdb/config/powerpc/tm-vxworks.h
diff -c /dev/null gdb/gdb/config/powerpc/tm-vxworks.h:1.2
*** /dev/null	Tue Jul 13 17:17:40 1999
--- gdb/gdb/config/powerpc/tm-vxworks.h	Fri Jul  9 12:36:28 1999
***************
*** 0 ****
--- 1,27 ----
+ /* Target machine description for VxWorks on the PowerPC, 
+    for GDB, the GNU debugger.
+    Copyright 1999 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.  */
+ 
+ #ifndef TM_VXWORKS_H
+ #define TM_VXWORKS_H
+ 
+ #include "powerpc/tm-ppc-eabi.h"
+ #include "tm-vxworks.h"
+ 
+ #endif /* ifndef TM_VXWORKS_H */
Index: gdb/gdb/config/powerpc/vxworks.mt
diff -c /dev/null gdb/gdb/config/powerpc/vxworks.mt:1.1
*** /dev/null	Tue Jul 13 17:17:40 1999
--- gdb/gdb/config/powerpc/vxworks.mt	Thu Jul  8 10:54:32 1999
***************
*** 0 ****
--- 1,3 ----
+ # Target: Powerpc running VxWorks
+ TDEPFILES= rs6000-tdep.o
+ TM_FILE= tm-vxworks.h

-- 
J.T. Conklin
RedBack Networks

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]