1*b725ae77Skettenis /* Native definitions for alpha running GNU/Linux. 2*b725ae77Skettenis 3*b725ae77Skettenis Copyright 1993, 1994, 1996, 1998, 2000, 2001, 2002, 2003 4*b725ae77Skettenis Free Software Foundation, Inc. 5e93f7393Sniklas 6e93f7393Sniklas This file is part of GDB. 7e93f7393Sniklas 8e93f7393Sniklas This program is free software; you can redistribute it and/or modify 9e93f7393Sniklas it under the terms of the GNU General Public License as published by 10e93f7393Sniklas the Free Software Foundation; either version 2 of the License, or 11e93f7393Sniklas (at your option) any later version. 12e93f7393Sniklas 13e93f7393Sniklas This program is distributed in the hope that it will be useful, 14e93f7393Sniklas but WITHOUT ANY WARRANTY; without even the implied warranty of 15e93f7393Sniklas MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16e93f7393Sniklas GNU General Public License for more details. 17e93f7393Sniklas 18e93f7393Sniklas You should have received a copy of the GNU General Public License 19e93f7393Sniklas along with this program; if not, write to the Free Software 20*b725ae77Skettenis Foundation, Inc., 59 Temple Place - Suite 330, 21*b725ae77Skettenis Boston, MA 02111-1307, USA. */ 22e93f7393Sniklas 23*b725ae77Skettenis #ifndef NM_LINUX_H 24*b725ae77Skettenis #define NM_LINUX_H 25e93f7393Sniklas 26*b725ae77Skettenis #include "config/nm-linux.h" 27e93f7393Sniklas 28e93f7393Sniklas /* ptrace register ``addresses'' are absolute. */ 29e93f7393Sniklas 30e93f7393Sniklas #define U_REGS_OFFSET 0 31e93f7393Sniklas 32e93f7393Sniklas /* The alpha does not step over a breakpoint, the manpage is lying again. */ 33e93f7393Sniklas 34*b725ae77Skettenis #define CANNOT_STEP_BREAKPOINT 1 35e93f7393Sniklas 36*b725ae77Skettenis /* Given a pointer to either a gregset_t or fpregset_t, return a 37*b725ae77Skettenis pointer to the first register. */ 38*b725ae77Skettenis #define ALPHA_REGSET_BASE(regsetp) ((long *) (regsetp)) 39e93f7393Sniklas 40*b725ae77Skettenis /* Given a pointer to a gregset_t, locate the UNIQUE value. */ 41*b725ae77Skettenis #define ALPHA_REGSET_UNIQUE(regsetp) ((long *)(regsetp) + 32) 42e93f7393Sniklas 43*b725ae77Skettenis /* The address of UNIQUE for ptrace. */ 44*b725ae77Skettenis #define ALPHA_UNIQUE_PTRACE_ADDR 65 45e93f7393Sniklas 46*b725ae77Skettenis #endif /* NM_LINUX_H */ 47