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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [config/] [m68k/] [nm-hp300hpux.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* Parameters for native support on HP 9000 model 320, for GDB, the GNU debugger.
2
   Copyright 1986, 1987, 1989, 1992, 1993, 1996
3
   Free 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
/* Do implement the attach and detach commands.  */
23
 
24
#define ATTACH_DETACH
25
 
26
/* fetch_inferior_registers is in nat-hp300hpux.c.  */
27
#define FETCH_INFERIOR_REGISTERS
28
 
29
/* Get registers from a core file.  The floating point stuff is just
30
   guesses.  */
31
#define NEED_SYS_CORE_H
32
#define REGISTER_U_ADDR(addr, blockend, regno)                          \
33
{                                                                       \
34
  if (regno < PS_REGNUM)                                                \
35
    addr = (int) (&((struct proc_regs *)(blockend))->d0 + regno);       \
36
  else if (regno == PS_REGNUM)                                          \
37
    addr = (int) ((char *) (&((struct proc_regs *)(blockend))->ps) - 2); \
38
  else if (regno == PC_REGNUM)                                          \
39
    addr = (int) &((struct proc_regs *)(blockend))->pc;                 \
40
  else if (regno < FPC_REGNUM)                                          \
41
    addr = (int) (((struct proc_regs *)(blockend))->mc68881             \
42
                  + ((regno) - FP0_REGNUM) / 2);                        \
43
  else                                                                  \
44
    addr = (int) (((struct proc_regs *)(blockend))->p_float             \
45
                  + (regno) - FPC_REGNUM);                              \
46
}
47
 
48
/* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace
49
   with five arguments, so programs written for normal ptrace lose.
50
 
51
   Idiots.
52
 
53
   (They should have just made it varadic).  */
54
 
55
#define FIVE_ARG_PTRACE

powered by: WebSVN 2.1.0

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