2003-11-22 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / vax-tdep.h
1 /* Common target dependent code for GDB on VAX systems.
2 Copyright 2002, 2003 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #ifndef VAX_TDEP_H
22 #define VAX_TDEP_H
23
24 /* Say how long (ordinary) registers are. This is a piece of bogosity
25 used in push_word and a few other places; DEPRECATED_REGISTER_RAW_SIZE is the
26 real way to know how big a register is. */
27 #define VAX_REGISTER_SIZE 4
28
29 /* Number of machine registers. */
30 #define VAX_NUM_REGS 17
31
32 /* Total amount of space needed to store our copies of the machine's
33 register state. */
34 #define VAX_REGISTER_BYTES (VAX_NUM_REGS * 4)
35
36 /* Largest value DEPRECATED_REGISTER_RAW_SIZE can have. */
37 #define VAX_MAX_REGISTER_RAW_SIZE 4
38
39 /* Largest value DEPRECATED_REGISTER_VIRTUAL_SIZE can have. */
40 #define VAX_MAX_REGISTER_VIRTUAL_SIZE 4
41
42 /* Register numbers of various important registers.
43 Note that most of these values are "real" register numbers,
44 and correspond to the general registers of the machine,
45 and are "phony" register numbers which is too large
46 to be an actual register number as far as the user is concerned
47 but serves to get the desired value when passed to read_register. */
48
49 #define VAX_AP_REGNUM 12 /* argument pointer */
50 #define VAX_FP_REGNUM 13 /* Contains address of executing stack frame */
51 #define VAX_SP_REGNUM 14 /* Contains address of top of stack */
52 #define VAX_PC_REGNUM 15 /* Contains program counter */
53 #define VAX_PS_REGNUM 16 /* Contains processor status */
54
55 #endif /* VAX_TDEP_H */
This page took 0.030948 seconds and 4 git commands to generate.