GDB (API)
/home/stan/gdb/src/gdb/arm-linux-tdep.h
Go to the documentation of this file.
00001 /* GNU/Linux on ARM target support, prototypes.
00002 
00003    Copyright (C) 2006-2013 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 3 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 struct regset;
00021 struct regcache;
00022 
00023 #define ARM_LINUX_SIZEOF_NWFPE (8 * FP_REGISTER_SIZE \
00024                                 + 2 * INT_REGISTER_SIZE \
00025                                 + 8 + INT_REGISTER_SIZE)
00026 
00027 /* The index to access CSPR in user_regs defined in GLIBC.  */
00028 #define ARM_CPSR_GREGNUM 16
00029 
00030 /* Support for register format used by the NWFPE FPA emulator.  Each
00031    register takes three words, where either the first one, two, or
00032    three hold a single, double, or extended precision value (depending
00033    on the corresponding tag).  The register set is eight registers,
00034    followed by the fpsr and fpcr, followed by eight tag bytes, and a
00035    final word flag which indicates whether NWFPE has been
00036    initialized.  */
00037 
00038 #define NWFPE_FPSR_OFFSET (8 * FP_REGISTER_SIZE)
00039 #define NWFPE_FPCR_OFFSET (NWFPE_FPSR_OFFSET + INT_REGISTER_SIZE)
00040 #define NWFPE_TAGS_OFFSET (NWFPE_FPCR_OFFSET + INT_REGISTER_SIZE)
00041 #define NWFPE_INITFLAG_OFFSET (NWFPE_TAGS_OFFSET + 8)
00042 
00043 void arm_linux_supply_gregset (const struct regset *regset,
00044                                struct regcache *regcache,
00045                                int regnum, const void *gregs_buf, size_t len);
00046 void arm_linux_collect_gregset (const struct regset *regset,
00047                                 const struct regcache *regcache,
00048                                 int regnum, void *gregs_buf, size_t len);
00049 
00050 void supply_nwfpe_register (struct regcache *regcache, int regno,
00051                             const gdb_byte *regs);
00052 void collect_nwfpe_register (const struct regcache *regcache, int regno,
00053                              gdb_byte *regs);
00054 
00055 void arm_linux_supply_nwfpe (const struct regset *regset,
00056                              struct regcache *regcache,
00057                              int regnum, const void *regs_buf, size_t len);
00058 void arm_linux_collect_nwfpe (const struct regset *regset,
00059                               const struct regcache *regcache,
00060                               int regnum, void *regs_buf, size_t len);
00061 
00062 /* ARM GNU/Linux HWCAP values.  These are in defined in
00063    <asm/elf.h> in current kernels.  */
00064 #define HWCAP_VFP       64
00065 #define HWCAP_IWMMXT    512
00066 #define HWCAP_NEON      4096
00067 #define HWCAP_VFPv3     8192
00068 #define HWCAP_VFPv3D16  16384
00069 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines