1 /* Native support for GNU/Linux on S390. 2 3 Copyright 2001, 2002, 2003 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 31 /* ptrace access. */ 32 33 #define PTRACE_ARG3_TYPE long 34 #define PTRACE_XFER_TYPE long 35 36 #define FETCH_INFERIOR_REGISTERS 37 38 #define KERNEL_U_SIZE kernel_u_size() 39 extern int kernel_u_size (void); 40 41 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); 47 48 #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1 49 #define TARGET_REGION_OK_FOR_HW_WATCHPOINT(addr, len) 1 50 #define HAVE_CONTINUABLE_WATCHPOINT 1 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 61 62 #endif /* nm_linux.h */ 63