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 tm-vxworks.h


The enclosed patch adds config/tm-vxworks.h, a target specific config
header for definitions common to all vxworks targets.  In the current
gdb, that is only GDBINIT_FILENAME and DEFAULT_PROMPT, but there will
likely be more when changes from WRS' vxgdb are folded in.

	--jtc

1999-05-19  J.T. Conklin  <jtc@redback.com>

	* config/tm-vxworks.h: New file, header for definitions common to
 	all vxWorks targets.
	* config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
 	config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
 	config/sparc/tm-vxsparc.h: Include tm-vxworks.h.

Index: gdb/gdb/config/tm-vxworks.h
diff -c /dev/null gdb/gdb/config/tm-vxworks.h:1.1
*** /dev/null	Wed May 19 14:14:26 1999
--- gdb/gdb/config/tm-vxworks.h	Wed May 19 14:06:27 1999
***************
*** 0 ****
--- 1,22 ----
+ /* Target machine description for VxWorks, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+ 
+ #define	GDBINIT_FILENAME	".vxgdbinit"
+ 
+ #define	DEFAULT_PROMPT		"(vxgdb) "
Index: gdb/gdb/config/a29k/tm-vx29k.h
diff -c gdb/gdb/config/a29k/tm-vx29k.h:1.1.1.1 gdb/gdb/config/a29k/tm-vx29k.h:1.2
*** gdb/gdb/config/a29k/tm-vx29k.h:1.1.1.1	Wed May 19 10:38:55 1999
--- gdb/gdb/config/a29k/tm-vx29k.h	Wed May 19 14:06:28 1999
***************
*** 1,5 ****
  /* Target machine description for VxWorks on the 29k, for GDB, the GNU debugger.
!    Copyright 1994 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
--- 1,5 ----
  /* Target machine description for VxWorks on the 29k, for GDB, the GNU debugger.
!    Copyright 1994, 1999 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
***************
*** 19,28 ****
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
  #include "a29k/tm-a29k.h"
! 
! #define	GDBINIT_FILENAME	".vxgdbinit"
! 
! #define	DEFAULT_PROMPT		"(vxgdb) "
  
  /* Number of registers in a ptrace_getregs call. */
  
--- 19,25 ----
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
  #include "a29k/tm-a29k.h"
! #include "tm-vxworks.h"
  
  /* Number of registers in a ptrace_getregs call. */
  
Index: gdb/gdb/config/i960/tm-vx960.h
diff -c gdb/gdb/config/i960/tm-vx960.h:1.1.1.1 gdb/gdb/config/i960/tm-vx960.h:1.2
*** gdb/gdb/config/i960/tm-vx960.h:1.1.1.1	Wed May 19 10:39:09 1999
--- gdb/gdb/config/i960/tm-vx960.h	Wed May 19 14:06:31 1999
***************
*** 1,5 ****
  /* Parameters for VxWorks Intel 960's, for GDB, the GNU debugger.
!    Copyright (C) 1986-1991 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
--- 1,5 ----
  /* Parameters for VxWorks Intel 960's, for GDB, the GNU debugger.
!    Copyright (C) 1986-1991, 1999 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
***************
*** 19,33 ****
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
  #include "i960/tm-i960.h"
  
  /* Under VxWorks the IP isn't filled in.  Skip it, go with RIP, which has
     the real value.  */
  #undef PC_REGNUM
  #define PC_REGNUM RIP_REGNUM
- 
- #define	GDBINIT_FILENAME	".vxgdbinit"
- 
- #define	DEFAULT_PROMPT		"(vxgdb) "
  
  /* We have more complex, useful breakpoints on the target.
     Amount ip must be decremented by after a breakpoint.  */
--- 19,30 ----
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
  #include "i960/tm-i960.h"
+ #include "tm-vxworks.h"
  
  /* Under VxWorks the IP isn't filled in.  Skip it, go with RIP, which has
     the real value.  */
  #undef PC_REGNUM
  #define PC_REGNUM RIP_REGNUM
  
  /* We have more complex, useful breakpoints on the target.
     Amount ip must be decremented by after a breakpoint.  */
Index: gdb/gdb/config/m68k/tm-vx68.h
diff -c gdb/gdb/config/m68k/tm-vx68.h:1.1.1.1 gdb/gdb/config/m68k/tm-vx68.h:1.2
*** gdb/gdb/config/m68k/tm-vx68.h:1.1.1.1	Wed May 19 10:39:13 1999
--- gdb/gdb/config/m68k/tm-vx68.h	Wed May 19 14:06:32 1999
***************
*** 1,5 ****
  /* Target machine description for VxWorks m68k's, for GDB, the GNU debugger.
!    Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
--- 1,5 ----
  /* Target machine description for VxWorks m68k's, for GDB, the GNU debugger.
!    Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1999 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
***************
*** 18,27 ****
  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) "
- 
  /* GCC is probably the only compiler used on this configuration.  So
     get this right even if the code which detects gcc2_compiled. is
     still broken.  */
--- 18,23 ----
***************
*** 32,37 ****
--- 28,34 ----
  #define	DECR_PC_AFTER_BREAK	0
  
  #include "m68k/tm-m68k.h"
+ #include "tm-vxworks.h"
  
  /* Takes the current frame-struct pointer and returns the chain-pointer
     to get to the calling frame.
Index: gdb/gdb/config/mips/tm-vxmips.h
diff -c gdb/gdb/config/mips/tm-vxmips.h:1.1.1.1 gdb/gdb/config/mips/tm-vxmips.h:1.2
*** gdb/gdb/config/mips/tm-vxmips.h:1.1.1.1	Wed May 19 10:39:18 1999
--- gdb/gdb/config/mips/tm-vxmips.h	Wed May 19 14:06:33 1999
***************
*** 1,5 ****
  /* 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.
--- 1,5 ----
  /* Target machine description for VxWorks MIPS's, for GDB, the GNU debugger.
!    Copyright 1996, 1999 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
***************
*** 18,28 ****
  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. */
  
--- 18,25 ----
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
  #include "mips/tm-mips.h"
+ #include "tm-vxworks.h"
  
  /* FIXME: These are almost certainly wrong. */
  
Index: gdb/gdb/config/sparc/tm-vxsparc.h
diff -c gdb/gdb/config/sparc/tm-vxsparc.h:1.1.1.1 gdb/gdb/config/sparc/tm-vxsparc.h:1.2
*** gdb/gdb/config/sparc/tm-vxsparc.h:1.1.1.1	Wed May 19 10:39:34 1999
--- gdb/gdb/config/sparc/tm-vxsparc.h	Wed May 19 14:06:35 1999
***************
*** 1,5 ****
  /* Target machine description for VxWorks sparc's, for GDB, the GNU debugger.
!    Copyright 1993 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
--- 1,5 ----
  /* Target machine description for VxWorks sparc's, for GDB, the GNU debugger.
!    Copyright 1993, 1999 Free Software Foundation, Inc.
     Contributed by Cygnus Support.
  
  This file is part of GDB.
***************
*** 18,28 ****
  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 "sparc/tm-spc-em.h"
  
  /* FIXME: These are almost certainly wrong. */
  
--- 18,25 ----
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
  #include "sparc/tm-spc-em.h"
+ #include "tm-vxworks.h"
  
  /* FIXME: These are almost certainly wrong. */
  

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