X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fvax-tdep.h;h=159cbf4b7c6cb9cf03fc6e6d2ea839a98f225908;hb=00b50a6ad4e0067771bd3a756de7720e80418aed;hp=7529e57d95edd126b780eba7c9e9c41dee4b92d5;hpb=4be87837a23001df36ca5a4171eb01dec22856e1;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/vax-tdep.h b/gdb/vax-tdep.h index 7529e57d95..159cbf4b7c 100644 --- a/gdb/vax-tdep.h +++ b/gdb/vax-tdep.h @@ -1,11 +1,13 @@ -/* Common target dependent code for GDB on VAX systems. - Copyright 2002, 2003 Free Software Foundation, Inc. +/* Target-dependent code for the VAX. + + Copyright (C) 2002, 2003, 2004, 2007, 2008, 2009, 2010, 2011 + 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 + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -14,42 +16,25 @@ 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. */ + along with this program. If not, see . */ #ifndef VAX_TDEP_H #define VAX_TDEP_H -/* Say how long (ordinary) registers are. This is a piece of bogosity - used in push_word and a few other places; REGISTER_RAW_SIZE is the - real way to know how big a register is. */ -#define VAX_REGISTER_SIZE 4 +/* Register numbers of various important registers. */ + +enum vax_regnum +{ + VAX_R0_REGNUM, + VAX_R1_REGNUM, + VAX_AP_REGNUM = 12, /* Argument pointer on user stack. */ + VAX_FP_REGNUM, /* Address of executing stack frame. */ + VAX_SP_REGNUM, /* Address of top of stack. */ + VAX_PC_REGNUM, /* Program counter. */ + VAX_PS_REGNUM /* Processor status. */ +}; /* Number of machine registers. */ #define VAX_NUM_REGS 17 -/* Total amount of space needed to store our copies of the machine's - register state. */ -#define VAX_REGISTER_BYTES (VAX_NUM_REGS * 4) - -/* Largest value REGISTER_RAW_SIZE can have. */ -#define VAX_MAX_REGISTER_RAW_SIZE 4 - -/* Largest value REGISTER_VIRTUAL_SIZE can have. */ -#define VAX_MAX_REGISTER_VIRTUAL_SIZE 4 - -/* Register numbers of various important registers. - Note that most of these values are "real" register numbers, - and correspond to the general registers of the machine, - and are "phony" register numbers which is too large - to be an actual register number as far as the user is concerned - but serves to get the desired value when passed to read_register. */ - -#define VAX_AP_REGNUM 12 /* argument pointer */ -#define VAX_FP_REGNUM 13 /* Contains address of executing stack frame */ -#define VAX_SP_REGNUM 14 /* Contains address of top of stack */ -#define VAX_PC_REGNUM 15 /* Contains program counter */ -#define VAX_PS_REGNUM 16 /* Contains processor status */ - -#endif /* VAX_TDEP_H */ +#endif /* vax-tdep.h */