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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [i386/] [tm-i386os9k.h] - Blame information for rev 107

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

Line No. Rev Author Line
1 106 markom
/* Macro definitions for i386 running under BSD Unix.
2
   Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
3
 
4
 
5
   This program is free software; you can redistribute it and/or modify
6
   it under the terms of the GNU General Public License as published by
7
   the Free Software Foundation; either version 2 of the License, or
8
   (at your option) any later version.
9
 
10
   This program is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
   GNU General Public License for more details.
14
 
15
   You should have received a copy of the GNU General Public License
16
   along with this program; if not, write to the Free Software
17
   Foundation, Inc., 59 Temple Place - Suite 330,
18
   Boston, MA 02111-1307, USA.  */
19
 
20
#ifndef TM_I386OS9K_H
21
#define TM_I386OS9K_H 1
22
 
23
#include "i386/tm-i386.h"
24
 
25
/* Number of machine registers */
26
 
27
#undef  NUM_REGS
28
#define NUM_REGS (16)           /* Basic i*86 regs */
29
 
30
/* Initializer for an array of names of registers.  There should be at least
31
   NUM_REGS strings in this initializer.  Any excess ones are simply ignored.
32
   The order of the first 8 registers must match the compiler's numbering
33
   scheme (which is the same as the 386 scheme) and also regmap in the various
34
   *-nat.c files. */
35
 
36
#undef  REGISTER_NAMES
37
#define REGISTER_NAMES { "eax", "ecx", "edx", "ebx", \
38
                         "esp", "ebp", "esi", "edi", \
39
                         "eip", "eflags", "cs", "ss", \
40
                         "ds", "es", "fs", "gs", \
41
                         }
42
 
43
#define DATABASE_REG    3       /* ebx */
44
 
45
/* Amount PC must be decremented by after a breakpoint.  This is often the
46
   number of bytes in BREAKPOINT but not always (such as now). */
47
 
48
#undef DECR_PC_AFTER_BREAK
49
#define DECR_PC_AFTER_BREAK 0
50
 
51
/* On 386 bsd, sigtramp is above the user stack and immediately below
52
   the user area. Using constants here allows for cross debugging.
53
   These are tested for BSDI but should work on 386BSD.  */
54
#define SIGTRAMP_START(pc)      0xfdbfdfc0
55
#define SIGTRAMP_END(pc)        0xfdbfe000
56
 
57
/* Saved Pc.  Get it from sigcontext if within sigtramp.  */
58
 
59
/* Offset to saved PC in sigcontext, from <sys/signal.h>.  */
60
#define SIGCONTEXT_PC_OFFSET 20
61
 
62
#define BELIEVE_PCC_PROMOTION 1
63
 
64
#endif /* #ifndef TM_I386OS9K_H */

powered by: WebSVN 2.1.0

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