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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [config/] [s390/] [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 on S390.
2
 
3
   Copyright 2001, 2002 Free Software Foundation, Inc.
4
 
5
   Ported by D.J. Barrow for IBM Deutschland Entwicklung GmbH, IBM
6
   Corporation.  derived from i390-nmlinux.h
7
 
8
   This file is part of GDB.
9
 
10
   This program is free software; you can redistribute it and/or modify
11
   it under the terms of the GNU General Public License as published by
12
   the Free Software Foundation; either version 2 of the License, or
13
   (at your option) any later version.
14
 
15
   This program is distributed in the hope that it will be useful,
16
   but WITHOUT ANY WARRANTY; without even the implied warranty of
17
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
   GNU General Public License for more details.
19
 
20
   You should have received a copy of the GNU General Public License
21
   along with this program; if not, write to the Free Software
22
   Foundation, Inc., 59 Temple Place - Suite 330,
23
   Boston, MA 02111-1307, USA.  */
24
 
25
#ifndef NM_LINUX_H
26
#define NM_LINUX_H
27
 
28
#include "config/nm-linux.h"
29
 
30
#define REGISTER_U_ADDR(addr, blockend, regno) \
31
        (addr) = s390_register_u_addr((blockend),(regno));
32
extern int s390_register_u_addr (int, int);
33
 
34
/* Return sizeof user struct to callers in less machine dependent routines */
35
 
36
#define KERNEL_U_SIZE kernel_u_size()
37
extern int kernel_u_size (void);
38
 
39
#define U_REGS_OFFSET 0
40
 
41
 
42
/* We define this if link.h is available, because with ELF we use SVR4 style
43
   shared libraries. */
44
 
45
#ifdef HAVE_LINK_H
46
#define SVR4_SHARED_LIBS
47
#include "solib.h"              /* Support for shared libraries. */
48
#endif
49
 
50
 
51
/* WATCHPOINT SPECIFIC STUFF */
52
 
53
#define TARGET_HAS_HARDWARE_WATCHPOINTS
54
#define HAVE_CONTINUABLE_WATCHPOINT
55
#define target_insert_watchpoint(addr, len, type)  \
56
  s390_insert_watchpoint (PIDGET (inferior_ptid), addr, len, type)
57
 
58
#define target_remove_watchpoint(addr, len, type)  \
59
  s390_remove_watchpoint (PIDGET (inferior_ptid), addr, len)
60
 
61
extern int watch_area_cnt;
62
/* gdb if really stupid & calls this all the time without a
63
   watchpoint even being set */
64
#define STOPPED_BY_WATCHPOINT(W)  \
65
  (watch_area_cnt&&s390_stopped_by_watchpoint (PIDGET(inferior_ptid)))
66
 
67
extern CORE_ADDR s390_stopped_by_watchpoint (int);
68
 
69
/*
70
  Type can be 1 for a read_watchpoint or 2 for an access watchpoint.
71
 */
72
extern int s390_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw);
73
extern int s390_remove_watchpoint (int pid, CORE_ADDR addr, int len);
74
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
75
         (((type) == bp_hardware_watchpoint)|| \
76
         ((type) == bp_watchpoint)|| \
77
         ((type) == bp_read_watchpoint) || \
78
         ((type) == bp_access_watchpoint))
79
 
80
 
81
/* Needed for s390x */
82
#define PTRACE_ARG3_TYPE long
83
#define PTRACE_XFER_TYPE long
84
#endif /* nm_linux.h */

powered by: WebSVN 2.1.0

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