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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [config/] [mips/] [xm-mips.h] - Blame information for rev 1181

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

Line No. Rev Author Line
1 1181 sfurman
/* Definitions to make GDB run on a mips box under 4.3bsd.
2
   Copyright 1986, 1987, 1989, 1993, 1994, 1995, 1996, 1998
3
   Free Software Foundation, Inc.
4
   Contributed by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin
5
   and by Alessandro Forin(af@cs.cmu.edu) at CMU
6
 
7
   This file is part of GDB.
8
 
9
   This program is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 2 of the License, or
12
   (at your option) any later version.
13
 
14
   This program is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with this program; if not, write to the Free Software
21
   Foundation, Inc., 59 Temple Place - Suite 330,
22
   Boston, MA 02111-1307, USA.  */
23
 
24
#ifdef ultrix
25
/* Needed for DECstation core files.  */
26
#include <machine/param.h>
27
#define KERNEL_U_ADDR UADDR
28
 
29
/* Native Ultrix cc has broken long long support.  */
30
#ifndef __GNUC__
31
#undef CC_HAS_LONG_LONG
32
#endif
33
#endif
34
 
35
#if ! defined (__GNUC__) && ! defined (offsetof)
36
#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
37
#endif
38
 
39
/* Only used for core files on DECstations.
40
   First four registers at u.u_ar0 are saved arguments, and
41
   there is no r0 saved.   Float registers are saved
42
   in u_pcb.pcb_fpregs, not relative to u.u_ar0.  */
43
 
44
#define REGISTER_U_ADDR(addr, blockend, regno)          \
45
        { \
46
          if (regno < FP0_REGNUM) \
47
            addr = blockend + sizeof(int) * (4 + regno - 1); \
48
          else \
49
            addr = offsetof (struct user, u_pcb.pcb_fpregs[0]) + \
50
                   sizeof (int) * (regno - FP0_REGNUM); \
51
        }
52
 
53
/* Kernel is a bit tenacious about sharing text segments, disallowing bpts.  */
54
#define ONE_PROCESS_WRITETEXT
55
 
56
/* HAVE_SGTTY also works, last we tried.
57
 
58
   But we have termios, at least as of Ultrix 4.2A, so use it.  */
59
#define HAVE_TERMIOS

powered by: WebSVN 2.1.0

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