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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [mips/] [xm-mips.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
/* 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
#if !defined (HOST_BYTE_ORDER)
25
#define HOST_BYTE_ORDER LITTLE_ENDIAN
26
#endif
27
 
28
#ifdef ultrix
29
/* Needed for DECstation core files.  */
30
#include <machine/param.h>
31
#define KERNEL_U_ADDR UADDR
32
 
33
/* Native Ultrix cc has broken long long support.  */
34
#ifndef __GNUC__
35
#undef CC_HAS_LONG_LONG
36
#endif
37
#endif
38
 
39
#if ! defined (__GNUC__) && ! defined (offsetof)
40
#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
41
#endif
42
 
43
/* Only used for core files on DECstations.
44
   First four registers at u.u_ar0 are saved arguments, and
45
   there is no r0 saved.   Float registers are saved
46
   in u_pcb.pcb_fpregs, not relative to u.u_ar0.  */
47
 
48
#define REGISTER_U_ADDR(addr, blockend, regno)          \
49
        { \
50
          if (regno < FP0_REGNUM) \
51
            addr = blockend + sizeof(int) * (4 + regno - 1); \
52
          else \
53
            addr = offsetof (struct user, u_pcb.pcb_fpregs[0]) + \
54
                   sizeof (int) * (regno - FP0_REGNUM); \
55
        }
56
 
57
/* Kernel is a bit tenacious about sharing text segments, disallowing bpts.  */
58
#define ONE_PROCESS_WRITETEXT
59
 
60
/* HAVE_SGTTY also works, last we tried.
61
 
62
   But we have termios, at least as of Ultrix 4.2A, so use it.  */
63
#define HAVE_TERMIOS

powered by: WebSVN 2.1.0

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