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

Subversion Repositories or1k

[/] [or1k/] [tags/] [VER_5_3/] [gdb-5.3/] [gdb/] [config/] [i386/] [nm-linux.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* Native support for GNU/Linux x86.
2
 
3
   Copyright 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
4
   1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
5
 
6
   This file is part of GDB.
7
 
8
   This program is free software; you can redistribute it and/or modify
9
   it under the terms of the GNU General Public License as published by
10
   the Free Software Foundation; either version 2 of the License, or
11
   (at your option) any later version.
12
 
13
   This program is distributed in the hope that it will be useful,
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with this program; if not, write to the Free Software
20
   Foundation, Inc., 59 Temple Place - Suite 330,
21
   Boston, MA 02111-1307, USA.  */
22
 
23
#ifndef NM_LINUX_H
24
#define NM_LINUX_H
25
 
26
/* GNU/Linux supports the i386 hardware debugging registers.  */
27
#define I386_USE_GENERIC_WATCHPOINTS
28
 
29
#include "i386/nm-i386.h"
30
#include "config/nm-linux.h"
31
 
32
/* Support for the user area.  */
33
 
34
/* Return the size of the user struct.  */
35
extern int kernel_u_size (void);
36
#define KERNEL_U_SIZE kernel_u_size()
37
 
38
/* This is the amount to substract from u.u_ar0 to get the offset in
39
   the core file of the register values.  */
40
#define KERNEL_U_ADDR 0
41
 
42
/* Offset of the registers within the user area.  */
43
#define U_REGS_OFFSET 0
44
 
45
extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regnum);
46
#define REGISTER_U_ADDR(addr, blockend, regnum) \
47
  (addr) = register_u_addr (blockend, regnum)
48
 
49
/* Provide access to the i386 hardware debugging registers.  */
50
 
51
extern void i386_linux_dr_set_control (unsigned long control);
52
#define I386_DR_LOW_SET_CONTROL(control) \
53
  i386_linux_dr_set_control (control)
54
 
55
extern void i386_linux_dr_set_addr (int regnum, CORE_ADDR addr);
56
#define I386_DR_LOW_SET_ADDR(regnum, addr) \
57
  i386_linux_dr_set_addr (regnum, addr)
58
 
59
extern void i386_linux_dr_reset_addr (int regnum);
60
#define I386_DR_LOW_RESET_ADDR(regnum) \
61
  i386_linux_dr_reset_addr (regnum)
62
 
63
extern unsigned long i386_linux_dr_get_status (void);
64
#define I386_DR_LOW_GET_STATUS() \
65
  i386_linux_dr_get_status ()
66
 
67
 
68
/* Override copies of {fetch,store}_inferior_registers in `infptrace.c'.  */
69
#define FETCH_INFERIOR_REGISTERS
70
 
71
/* Nevertheless, define CANNOT_{FETCH,STORE}_REGISTER, because we
72
   might fall back on the code `infptrace.c' (well a copy of that code
73
   in `i386-linux-nat.c' for now) and we can access only the
74
   general-purpose registers in that way.  */
75
extern int cannot_fetch_register (int regno);
76
extern int cannot_store_register (int regno);
77
#define CANNOT_FETCH_REGISTER(regno) cannot_fetch_register (regno)
78
#define CANNOT_STORE_REGISTER(regno) cannot_store_register (regno)
79
 
80
#ifdef HAVE_PTRACE_GETFPXREGS
81
/* Include register set support for the SSE registers.  */
82
#define FILL_FPXREGSET
83
#endif
84
 
85
/* Override child_resume in `infptrace.c'.  */
86
#define CHILD_RESUME
87
 
88
#endif /* nm-linux.h */

powered by: WebSVN 2.1.0

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