From: K. Richard Pixley Date: Wed, 28 Oct 1992 05:31:14 +0000 (+0000) Subject: vax native support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7aae0974c21c5f0b22a0827b12bfedecec19cbaf;p=binutils-gdb.git vax native support --- diff --git a/gdb/.Sanitize b/gdb/.Sanitize index 22426d84717..a61bcd04e00 100644 --- a/gdb/.Sanitize +++ b/gdb/.Sanitize @@ -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 diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5980a9cb4d7..b3d282dd419 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 2d438a82e2b..920d383ce85 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -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 diff --git a/gdb/config/vaxult.mh b/gdb/config/vaxult.mh index f0854174141..7c2fccacff8 100644 --- a/gdb/config/vaxult.mh +++ b/gdb/config/vaxult.mh @@ -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 diff --git a/gdb/nm-vax.h b/gdb/nm-vax.h new file mode 100644 index 00000000000..efbfd02592a --- /dev/null +++ b/gdb/nm-vax.h @@ -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; } + + diff --git a/gdb/xm-vax.h b/gdb/xm-vax.h index 778602aedbc..3e91b41fee6 100644 --- a/gdb/xm-vax.h +++ b/gdb/xm-vax.h @@ -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