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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [i386/] [tm-fbsd.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* Target-dependent definitions for FreeBSD/i386.
2
   Copyright 1997, 1999, 2000 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
#ifndef TM_FBSD_H
22
#define TM_FBSD_H
23
 
24
#define HAVE_I387_REGS
25
#include "i386/tm-i386.h"
26
 
27
/* FreeBSD uses the old gcc convention for struct returns.  */
28
 
29
#define USE_STRUCT_CONVENTION(gcc_p, type) \
30
  generic_use_struct_convention (1, type)
31
 
32
 
33
/* Support for longjmp.  */
34
 
35
/* Details about jmp_buf.  It's supposed to be an array of integers.  */
36
 
37
#define JB_ELEMENT_SIZE 4       /* Size of elements in jmp_buf.  */
38
#define JB_PC           0        /* Array index of saved PC.  */
39
 
40
/* Figure out where the longjmp will land.  Store the address that
41
   longjmp will jump to in *ADDR, and return non-zero if successful.  */
42
 
43
extern int get_longjmp_target (CORE_ADDR *addr);
44
#define GET_LONGJMP_TARGET(addr) get_longjmp_target (addr)
45
 
46
 
47
/* Support for signal handlers.  */
48
 
49
/* The sigtramp is above the user stack and immediately below
50
   the user area.  Using constants here allows for cross debugging.
51
   These are tested for FreeBSD 3.4.  */
52
 
53
#define SIGTRAMP_START(pc)      0xbfbfdf20
54
#define SIGTRAMP_END(pc)        0xbfbfdff0
55
 
56
/* Offset to saved PC in sigcontext, from <sys/signal.h>.  */
57
#define SIGCONTEXT_PC_OFFSET 20
58
 
59
 
60
/* Shared library support.  */
61
 
62
#ifndef SVR4_SHARED_LIBS
63
 
64
/* Return non-zero if we are in a shared library trampoline code stub.  */
65
 
66
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
67
  (name && !strcmp(name, "_DYNAMIC"))
68
 
69
#endif /* !SVR4_SHARED_LIBS */
70
 
71
#endif /* TM_FBSD_H */

powered by: WebSVN 2.1.0

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