1b725ae77Skettenis /* Definitions to make GDB run on an ARM based machine under GNU/Linux. 2b725ae77Skettenis Copyright 1999, 2000, 2001 Free Software Foundation, Inc. 3b725ae77Skettenis 4b725ae77Skettenis This file is part of GDB. 5b725ae77Skettenis 6b725ae77Skettenis This program is free software; you can redistribute it and/or modify 7b725ae77Skettenis it under the terms of the GNU General Public License as published by 8b725ae77Skettenis the Free Software Foundation; either version 2 of the License, or 9b725ae77Skettenis (at your option) any later version. 10b725ae77Skettenis 11b725ae77Skettenis This program is distributed in the hope that it will be useful, 12b725ae77Skettenis but WITHOUT ANY WARRANTY; without even the implied warranty of 13b725ae77Skettenis MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14b725ae77Skettenis GNU General Public License for more details. 15b725ae77Skettenis 16b725ae77Skettenis You should have received a copy of the GNU General Public License 17b725ae77Skettenis along with this program; if not, write to the Free Software 18b725ae77Skettenis Foundation, Inc., 59 Temple Place - Suite 330, 19b725ae77Skettenis Boston, MA 02111-1307, USA. */ 20b725ae77Skettenis 21b725ae77Skettenis #ifndef NM_ARMLINUX_H 22b725ae77Skettenis #define NM_ARMLINUX_H 23b725ae77Skettenis 24b725ae77Skettenis #include "config/nm-linux.h" 25b725ae77Skettenis 26b725ae77Skettenis /* ptrace register ``addresses'' are absolute. */ 27b725ae77Skettenis 28b725ae77Skettenis #define U_REGS_OFFSET 0 29b725ae77Skettenis 30b725ae77Skettenis /* Return sizeof user struct to callers in less machine dependent routines */ 31b725ae77Skettenis extern int kernel_u_size (void); 32b725ae77Skettenis #define KERNEL_U_SIZE arm_linux_kernel_u_size() 33b725ae77Skettenis 34*11efff7fSkettenis /* This is the amount to subtract from u.u_ar0 35*11efff7fSkettenis to get the offset in the core file of the register values. */ 36*11efff7fSkettenis #define KERNEL_U_ADDR 0x0 37*11efff7fSkettenis 38b725ae77Skettenis /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ 39b725ae77Skettenis #define FETCH_INFERIOR_REGISTERS 40b725ae77Skettenis 41b725ae77Skettenis #endif /* NM_ARMLINUX_H */ 42