arch.h revision 19e74b5815987bb4260351bc1e5ef4a1ea08b1b4
1/* 2 * This file is part of ltrace. 3 * Copyright (C) 2013 Petr Machata, Red Hat Inc. 4 * Copyright (C) 1998,2004,2008 Juan Cespedes 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 19 * 02110-1301 USA 20 */ 21 22#define ARCH_HAVE_ENABLE_BREAKPOINT 1 23#define ARCH_HAVE_DISABLE_BREAKPOINT 1 24 25#define BREAKPOINT_VALUE { 0xf0, 0x01, 0xf0, 0xe7 } 26#define BREAKPOINT_LENGTH 4 27#define THUMB_BREAKPOINT_VALUE { 0x01, 0xde } 28#define THUMB_BREAKPOINT_LENGTH 2 29#define DECR_PC_AFTER_BREAK 0 30#define ARCH_ENDIAN_LITTLE 31 32#define LT_ELFCLASS ELFCLASS32 33#define LT_ELF_MACHINE EM_ARM 34 35#define ARCH_HAVE_SW_SINGLESTEP 36#define ARCH_HAVE_BREAKPOINT_DATA 37struct arch_breakpoint_data { 38 int thumb_mode; 39}; 40