On Fri, 2010-03-19 at 09:02 -0400, Daniel Jacobowitz wrote: > On Mon, Mar 15, 2010 at 02:48:54PM +0000, Matthew Gretton-Dann wrote: > > +/* Copy LEN bytes from inferior's auxiliary vector starting at OFFSET > > + to debugger memory starting at MYADDR. */ > > + > > +static int > > +arm_read_auxv(int offset, unsigned char *myaddr, unsigned int len) > > In GDB you just need: > > target_auxv_search (current_target, AT_HWCAP, &val); > > Looks otherwise fine to me too. Sorry for the delay. Please find attached an updated patch which uses arm_read_auxv, and updates the warning messgaes. I've tested the change on a Cortex-A9 board. If this patch is okay can someone please commit it as I do not have commit rights to the GDB repository. Proposed ChangeLog: 2010-03-19 Matthew Gretton-Dann * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM * arm-linux-nat.c (arm_linux_vfp_register_count): Add new variable. (fetch_vfp_registers): New function to fetch VFP registers. (store_vfp_registers): New function to store VFP registers. (arm_linux_fetch_inferior_registers): Add support for VFP registers. (arm_linux_store_inferior_registers): Likewise. (arm_linux_read_description): Likewise. (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc until we need it. Thanks, Matt -- Matthew Gretton-Dann Principal Engineer - Tools, PD Software ARM Limited