* config/s390/nm-linux.h: Watchpoints are either continuable or
[deliverable/binutils-gdb.git] / gdb / config / s390 / nm-linux.h
1 /* Native support for Linux for S390
2 Copyright 2001 Free Software Foundation, Inc.
3 Ported by D.J. Barrow for IBM Deutschland Entwicklung GmbH, IBM Corporation.
4 derived from i390-nmlinux.h
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 NM_LINUX_H
23 #define NM_LINUX_H
24
25 #include "config/nm-linux.h"
26
27 #define REGISTER_U_ADDR(addr, blockend, regno) \
28 (addr) = s390_register_u_addr((blockend),(regno));
29 extern int s390_register_u_addr (int, int);
30
31 /* Return sizeof user struct to callers in less machine dependent routines */
32
33 #define KERNEL_U_SIZE kernel_u_size()
34 extern int kernel_u_size (void);
35
36 #define U_REGS_OFFSET 0
37
38
39 /* We define this if link.h is available, because with ELF we use SVR4 style
40 shared libraries. */
41
42 #ifdef HAVE_LINK_H
43 #define SVR4_SHARED_LIBS
44 #include "solib.h" /* Support for shared libraries. */
45 #endif
46
47
48 /* WATCHPOINT SPECIFIC STUFF */
49
50 #define TARGET_HAS_HARDWARE_WATCHPOINTS
51 #define HAVE_CONTINUABLE_WATCHPOINT
52 #define target_insert_watchpoint(addr, len, type) \
53 s390_insert_watchpoint (PIDGET (inferior_ptid), addr, len, type)
54
55 #define target_remove_watchpoint(addr, len, type) \
56 s390_remove_watchpoint (PIDGET (inferior_ptid), addr, len)
57
58 extern int watch_area_cnt;
59 /* gdb if really stupid & calls this all the time without a
60 watchpoint even being set */
61 #define STOPPED_BY_WATCHPOINT(W) \
62 (watch_area_cnt&&s390_stopped_by_watchpoint (PIDGET(inferior_ptid)))
63
64 extern CORE_ADDR s390_stopped_by_watchpoint (int);
65
66 /*
67 Type can be 1 for a read_watchpoint or 2 for an access watchpoint.
68 */
69 extern int s390_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw);
70 extern int s390_remove_watchpoint (int pid, CORE_ADDR addr, int len);
71 #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
72 (((type) == bp_hardware_watchpoint)|| \
73 ((type) == bp_watchpoint)|| \
74 ((type) == bp_read_watchpoint) || \
75 ((type) == bp_access_watchpoint))
76
77
78 /* Needed for s390x */
79 #define PTRACE_ARG3_TYPE long
80 #define PTRACE_XFER_TYPE long
81 #endif /* nm_linux.h */
This page took 0.031932 seconds and 5 git commands to generate.