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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* Definitions to target GDB to GNU/Linux on 386.
2
   Copyright 1992, 1993, 1995, 1996, 1998, 1999, 2000, 2001
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
#ifndef TM_LINUX_H
23
#define TM_LINUX_H
24
 
25
#define I386_GNULINUX_TARGET
26
#define HAVE_I387_REGS
27
#ifdef HAVE_PTRACE_GETFPXREGS
28
#define HAVE_SSE_REGS
29
#endif
30
 
31
#include "i386/tm-i386.h"
32
#include "tm-linux.h"
33
 
34
/* Use target_specific function to define link map offsets.  */
35
extern struct link_map_offsets *i386_linux_svr4_fetch_link_map_offsets (void);
36
#define SVR4_FETCH_LINK_MAP_OFFSETS() i386_linux_svr4_fetch_link_map_offsets ()
37
 
38
/* The following works around a problem with /usr/include/sys/procfs.h  */
39
#define sys_quotactl 1
40
 
41
/* When the i386 Linux kernel calls a signal handler, the return
42
   address points to a bit of code on the stack.  These definitions
43
   are used to identify this bit of code as a signal trampoline in
44
   order to support backtracing through calls to signal handlers.  */
45
 
46
#define IN_SIGTRAMP(pc, name) i386_linux_in_sigtramp (pc, name)
47
extern int i386_linux_in_sigtramp (CORE_ADDR, char *);
48
 
49
#undef FRAME_CHAIN
50
#define FRAME_CHAIN(frame) i386_linux_frame_chain (frame)
51
extern CORE_ADDR i386_linux_frame_chain (struct frame_info *frame);
52
 
53
#undef FRAME_SAVED_PC
54
#define FRAME_SAVED_PC(frame) i386_linux_frame_saved_pc (frame)
55
extern CORE_ADDR i386_linux_frame_saved_pc (struct frame_info *frame);
56
 
57
#undef SAVED_PC_AFTER_CALL
58
#define SAVED_PC_AFTER_CALL(frame) i386_linux_saved_pc_after_call (frame)
59
extern CORE_ADDR i386_linux_saved_pc_after_call (struct frame_info *);
60
 
61
/* When we call a function in a shared library, and the PLT sends us
62
   into the dynamic linker to find the function's real address, we
63
   need to skip over the dynamic linker call.  This function decides
64
   when to skip, and where to skip to.  See the comments for
65
   SKIP_SOLIB_RESOLVER at the top of infrun.c.  */
66
#define SKIP_SOLIB_RESOLVER i386_linux_skip_solib_resolver
67
extern CORE_ADDR i386_linux_skip_solib_resolver (CORE_ADDR pc);
68
 
69
/* N_FUN symbols in shared libaries have 0 for their values and need
70
   to be relocated. */
71
#define SOFUN_ADDRESS_MAYBE_MISSING
72
 
73
 
74
/* Support for longjmp.  */
75
 
76
/* Details about jmp_buf.  It's supposed to be an array of integers.  */
77
 
78
#define JB_ELEMENT_SIZE 4       /* Size of elements in jmp_buf.  */
79
#define JB_PC           5       /* Array index of saved PC.  */
80
 
81
/* Figure out where the longjmp will land.  Slurp the args out of the
82
   stack.  We expect the first arg to be a pointer to the jmp_buf
83
   structure from which we extract the pc (JB_PC) that we will land
84
   at.  The pc is copied into ADDR.  This routine returns true on
85
   success.  */
86
 
87
#define GET_LONGJMP_TARGET(addr) get_longjmp_target (addr)
88
extern int get_longjmp_target (CORE_ADDR *addr);
89
 
90
#endif /* #ifndef TM_LINUX_H */

powered by: WebSVN 2.1.0

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