This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / gdb / config / pa / nm-hppao.h
1 /* HPPA PA-RISC machine native support for Lites, for GDB.
2 Copyright 1995 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, Boston, MA 02111-1307, USA. */
19
20 #include "nm-m3.h"
21 #define U_REGS_OFFSET 0
22
23 #define KERNEL_U_ADDR 0
24
25 /* What a coincidence! */
26 #define REGISTER_U_ADDR(addr, blockend, regno) \
27 { addr = (int)(blockend) + REGISTER_BYTE (regno);}
28
29 /* This macro defines the register numbers (from REGISTER_NAMES) that
30 are effectively unavailable to the user through ptrace(). It allows
31 us to include the whole register set in REGISTER_NAMES (inorder to
32 better support remote debugging). If it is used in
33 fetch/store_inferior_registers() gdb will not complain about I/O errors
34 on fetching these registers. If all registers in REGISTER_NAMES
35 are available, then return false (0). */
36
37 #define CANNOT_STORE_REGISTER(regno) \
38 ((regno) == 0) || \
39 ((regno) == PCSQ_HEAD_REGNUM) || \
40 ((regno) >= PCSQ_TAIL_REGNUM && (regno) < IPSW_REGNUM) || \
41 ((regno) > IPSW_REGNUM && (regno) < FP4_REGNUM)
42
43 /* fetch_inferior_registers is in hppab-nat.c. */
44 #define FETCH_INFERIOR_REGISTERS
45
46 /* attach/detach works to some extent under BSD and HPUX. So long
47 as the process you're attaching to isn't blocked waiting on io,
48 blocked waiting on a signal, or in a system call things work
49 fine. (The problems in those cases are related to the fact that
50 the kernel can't provide complete register information for the
51 target process... Which really pisses off GDB.) */
52
53 #define ATTACH_DETACH
54
55 #define EMULATOR_BASE 0x90100000
56 #define EMULATOR_END 0x90200000
This page took 0.031342 seconds and 5 git commands to generate.