OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [pa/] [nm-hppao.h] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.