Commit | Line | Data |
---|---|---|
92362027 AC |
1 | /* Native support for GNU/Linux on S390. |
2 | ||
d0f54f9d | 3 | Copyright 2001, 2002, 2003 Free Software Foundation, Inc. |
92362027 AC |
4 | |
5 | Ported by D.J. Barrow for IBM Deutschland Entwicklung GmbH, IBM | |
6 | Corporation. derived from i390-nmlinux.h | |
7 | ||
5769d3cd AC |
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 | ||
341e3d11 | 30 | |
d0f54f9d | 31 | /* ptrace access. */ |
5769d3cd | 32 | |
d0f54f9d JB |
33 | #define PTRACE_ARG3_TYPE long |
34 | #define PTRACE_XFER_TYPE long | |
35 | ||
36 | #define FETCH_INFERIOR_REGISTERS | |
5769d3cd AC |
37 | |
38 | #define KERNEL_U_SIZE kernel_u_size() | |
39 | extern int kernel_u_size (void); | |
40 | ||
5769d3cd | 41 | |
e1457d83 JB |
42 | /* Hardware watchpoints. */ |
43 | ||
44 | extern int s390_stopped_by_watchpoint (void); | |
45 | extern int s390_insert_watchpoint (CORE_ADDR addr, int len); | |
46 | extern int s390_remove_watchpoint (CORE_ADDR addr, int len); | |
5769d3cd AC |
47 | |
48 | #define TARGET_HAS_HARDWARE_WATCHPOINTS | |
e1457d83 | 49 | #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1 |
7df1a324 | 50 | #define HAVE_CONTINUABLE_WATCHPOINT 1 |
e1457d83 JB |
51 | |
52 | #define STOPPED_BY_WATCHPOINT(w) \ | |
53 | s390_stopped_by_watchpoint () | |
54 | ||
55 | #define target_insert_watchpoint(addr, len, type) \ | |
56 | s390_insert_watchpoint (addr, len) | |
57 | ||
58 | #define target_remove_watchpoint(addr, len, type) \ | |
59 | s390_remove_watchpoint (addr, len) | |
60 | ||
5769d3cd | 61 | |
5769d3cd | 62 | #endif /* nm_linux.h */ |