* top.h (lim_at_start): Declare.
[deliverable/binutils-gdb.git] / gdb / alpha-tdep.h
CommitLineData
dc129d82 1/* Common target dependent code for GDB on Alpha systems.
4be87837 2 Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2002, 2003 Free
dc129d82
JT
3 Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22#ifndef ALPHA_TDEP_H
23#define ALPHA_TDEP_H
24
25/* Say how long (ordinary) registers are. This is a piece of bogosity
26 used in push_word and a few other places; REGISTER_RAW_SIZE is the
27 real way to know how big a register is. */
28#define ALPHA_REGISTER_SIZE 8
29
30/* Number of machine registers. */
87d1b352 31#define ALPHA_NUM_REGS 67
dc129d82
JT
32
33/* Total amount of space needed to store our copies of the machine's
34 register state. */
35#define ALPHA_REGISTER_BYTES (ALPHA_NUM_REGS * 8)
36
0ba6dca9
AC
37/* Register numbers of various important registers. Note that most of
38 these values are "real" register numbers, and correspond to the
44d88583 39 general registers of the machine. */
dc129d82
JT
40
41#define ALPHA_V0_REGNUM 0 /* Function integer return value */
42#define ALPHA_T7_REGNUM 8 /* Return address register for OSF/1 __add* */
43#define ALPHA_GCC_FP_REGNUM 15 /* Used by gcc as frame register */
44#define ALPHA_A0_REGNUM 16 /* Loc of first arg during a subr call */
45#define ALPHA_T9_REGNUM 23 /* Return address register for OSF/1 __div* */
46#define ALPHA_T12_REGNUM 27 /* Contains start addr of current proc */
47#define ALPHA_SP_REGNUM 30 /* Contains address of top of stack */
48#define ALPHA_RA_REGNUM 26 /* Contains return address value */
49#define ALPHA_ZERO_REGNUM 31 /* Read-only register, always 0 */
50#define ALPHA_FP0_REGNUM 32 /* Floating point register 0 */
51#define ALPHA_FPA0_REGNUM 48 /* First float arg during a subr call */
52#define ALPHA_FPCR_REGNUM 63 /* Floating point control register */
53#define ALPHA_PC_REGNUM 64 /* Contains program counter */
87d1b352 54#define ALPHA_UNIQUE_REGNUM 66 /* PAL_rduniq value */
dc129d82
JT
55
56/* The alpha has two different virtual pointers for arguments and locals.
57
58 The virtual argument pointer is pointing to the bottom of the argument
59 transfer area, which is located immediately below the virtual frame
60 pointer. Its size is fixed for the native compiler, it is either zero
61 (for the no arguments case) or large enough to hold all argument registers.
62 gcc uses a variable sized argument transfer area. As it has
63 to stay compatible with the native debugging tools it has to use the same
64 virtual argument pointer and adjust the argument offsets accordingly.
65
66 The virtual local pointer is localoff bytes below the virtual frame
67 pointer, the value of localoff is obtained from the PDR. */
68#define ALPHA_NUM_ARG_REGS 6
69
dc129d82
JT
70/* Target-dependent structure in gdbarch. */
71struct gdbarch_tdep
72{
d2427a71 73 CORE_ADDR vm_min_address; /* Used by alpha_heuristic_proc_start. */
36a6271d
JT
74
75 /* If PC is inside a dynamically-generated signal trampoline function
76 (i.e. one copied onto the user stack at run-time), return how many
77 bytes PC is beyond the start of that function. Otherwise, return -1. */
78 LONGEST (*dynamic_sigtramp_offset) (CORE_ADDR);
79
d2427a71
RH
80 /* Translate a signal handler stack base address into the address of
81 the sigcontext structure for that signal handler. */
5868c862
JT
82 CORE_ADDR (*sigcontext_addr) (struct frame_info *);
83
accc6d1f
JT
84 int jb_pc; /* Offset to PC value in jump buffer.
85 If htis is negative, longjmp support
86 will be disabled. */
87 size_t jb_elt_size; /* And the size of each entry in the buf. */
dc129d82
JT
88};
89
d2427a71
RH
90extern unsigned int alpha_read_insn (CORE_ADDR pc);
91extern void alpha_software_single_step (enum target_signal, int);
d2427a71 92extern CORE_ADDR alpha_after_prologue (CORE_ADDR pc);
d2427a71
RH
93
94extern void alpha_mdebug_init_abi (struct gdbarch_info, struct gdbarch *);
4bcbd6cb 95
dc129d82 96#endif /* ALPHA_TDEP_H */
This page took 0.132901 seconds and 4 git commands to generate.