vax native support

This commit is contained in:
K. Richard Pixley 1992-10-28 05:31:14 +00:00
parent 124a6fc037
commit 7aae0974c2
6 changed files with 44 additions and 11 deletions

View File

@ -169,6 +169,7 @@ nm-sysv4.h
nm-trash.h
nm-ultra3.h
nm-umax.h
nm-vax.h
ns32k-opcode.h
ns32k-pinsn.c
objfiles.c

View File

@ -1,5 +1,15 @@
Tue Oct 27 17:08:45 1992 K. Richard Pixley (rich@cygnus.com)
Vax ultrix native support.
* nm-vax.h: new file.
* Makefile.in (HFILES): added nm-vax.h.
* config/vaxult.mh (XDEPFILES): infptrace.o inftarg.o fork-child.o
coredep.o corelow.o removed.
(NAT_FILE, NATDEPFILES): new macros.
* xm-vax.h: updated copyright.
(REGISTER_U_ADDR): removed.
Apollo native support (untested).
* Makefile.in (HFILES): added nm-apollo68[bv].h.

View File

@ -257,7 +257,7 @@ HFILES= breakpoint.h buildsym.h call-cmds.h command.h defs.h \
nm-irix4.h nm-linux.h nm-m88k.h nm-mips.h nm-news.h nm-rs6000.h \
nm-sun2.h nm-sun3.h nm-sun386.h nm-sun4os4.h nm-trash.h \
nm-ultra3.h nm-hppab.h nm-hppah.h nm-umax.h nm-sysv4.h \
nm-apollo68b.h nm-apollov.h
nm-apollo68b.h nm-apollo68v.h nm-vax.h
REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar

View File

@ -1,6 +1,8 @@
# Host: DEC VAX running Ultrix
XDEPFILES= infptrace.o inftarg.o fork-child.o coredep.o corelow.o
XDEPFILES=
REGEX=regex.o
REGEX1=regex.o
XM_FILE= xm-vaxult.h
NAT_FILE= nm-vax.h
NATDEPFILES= infptrace.o inftarg.o fork-child.o coredep.o corelow.o

28
gdb/nm-vax.h Normal file
View File

@ -0,0 +1,28 @@
/* Common definitions for GDB native support on Vaxen under 4.2bsd and Ultrix.
Copyright (C) 1986, 1987, 1989, 1992 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. */
#define REGISTER_U_ADDR(addr, blockend, regno) \
{ addr = blockend - 0110 + regno * 4; \
if (regno == PC_REGNUM) addr = blockend - 8; \
if (regno == PS_REGNUM) addr = blockend - 4; \
if (regno == FP_REGNUM) addr = blockend - 0120; \
if (regno == AP_REGNUM) addr = blockend - 0124; \
if (regno == SP_REGNUM) addr = blockend - 20; }

View File

@ -1,5 +1,5 @@
/* Common definitions to make GDB run on Vaxen under 4.2bsd and Ultrix.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@ -28,14 +28,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define KERNEL_U_ADDR (0x80000000 - (UPAGES * NBPG))
#define REGISTER_U_ADDR(addr, blockend, regno) \
{ addr = blockend - 0110 + regno * 4; \
if (regno == PC_REGNUM) addr = blockend - 8; \
if (regno == PS_REGNUM) addr = blockend - 4; \
if (regno == FP_REGNUM) addr = blockend - 0120; \
if (regno == AP_REGNUM) addr = blockend - 0124; \
if (regno == SP_REGNUM) addr = blockend - 20; }
/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */
#define ONE_PROCESS_WRITETEXT