1*b725ae77Skettenis /* Definitions to target GDB to ARM embedded systems. 2*b725ae77Skettenis Copyright 1986, 1987, 1988, 1989, 1991, 1993, 1994, 1995, 1996, 1997, 3*b725ae77Skettenis 1998, 1999, 2000 Free Software Foundation, Inc. 4*b725ae77Skettenis 5*b725ae77Skettenis This file is part of GDB. 6*b725ae77Skettenis 7*b725ae77Skettenis This program is free software; you can redistribute it and/or modify 8*b725ae77Skettenis it under the terms of the GNU General Public License as published by 9*b725ae77Skettenis the Free Software Foundation; either version 2 of the License, or 10*b725ae77Skettenis (at your option) any later version. 11*b725ae77Skettenis 12*b725ae77Skettenis This program is distributed in the hope that it will be useful, 13*b725ae77Skettenis but WITHOUT ANY WARRANTY; without even the implied warranty of 14*b725ae77Skettenis MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*b725ae77Skettenis GNU General Public License for more details. 16*b725ae77Skettenis 17*b725ae77Skettenis You should have received a copy of the GNU General Public License 18*b725ae77Skettenis along with this program; if not, write to the Free Software 19*b725ae77Skettenis Foundation, Inc., 59 Temple Place - Suite 330, 20*b725ae77Skettenis Boston, MA 02111-1307, USA. */ 21*b725ae77Skettenis 22*b725ae77Skettenis #ifndef TM_ARMEMBED_H 23*b725ae77Skettenis #define TM_ARMEMBED_H 24*b725ae77Skettenis 25*b725ae77Skettenis /* Include the common ARM definitions. */ 26*b725ae77Skettenis #include "arm/tm-arm.h" 27*b725ae77Skettenis 28*b725ae77Skettenis /* The remote stub should be able to single-step. */ 29*b725ae77Skettenis #undef SOFTWARE_SINGLE_STEP_P 30*b725ae77Skettenis #define SOFTWARE_SINGLE_STEP_P() 0 31*b725ae77Skettenis 32*b725ae77Skettenis /* The first 0x20 bytes are the trap vectors. */ 33*b725ae77Skettenis #undef LOWEST_PC 34*b725ae77Skettenis #define LOWEST_PC 0x20 35*b725ae77Skettenis 36*b725ae77Skettenis /* Override defaults. */ 37*b725ae77Skettenis 38*b725ae77Skettenis #undef THUMB_LE_BREAKPOINT 39*b725ae77Skettenis #define THUMB_LE_BREAKPOINT {0xbe,0xbe} 40*b725ae77Skettenis #undef THUMB_BE_BREAKPOINT 41*b725ae77Skettenis #define THUMB_BE_BREAKPOINT {0xbe,0xbe} 42*b725ae77Skettenis 43*b725ae77Skettenis /* Functions for dealing with Thumb call thunks. */ 44*b725ae77Skettenis #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) arm_in_call_stub (pc, name) 45*b725ae77Skettenis #define SKIP_TRAMPOLINE_CODE(pc) arm_skip_stub (pc) 46*b725ae77Skettenis extern int arm_in_call_stub (CORE_ADDR pc, char *name); 47*b725ae77Skettenis extern CORE_ADDR arm_skip_stub (CORE_ADDR pc); 48*b725ae77Skettenis 49*b725ae77Skettenis #endif /* TM_ARMEMBED_H */ 50