FreeBSD/gnu/usr.bin/gdb/arch/arm/armfbsd-nat.c
/* Fill register REGNO (if it is a general-purpose register) in
   *GREGSETPS with the value in GDB's register array.  If REGNO is -1,
   do this for all registers.  */
Fill register REGNO (if it is a general-purpose register) in
GREGSETPS with the value in GDB's register array.  If REGNO is -1,
do this for all registers.
Fill register REGNO ( if it is a general - purpose register ) in GREGSETPS with the value in GDB ' s register array . If REGNO is - 1 do this for all registers .
void
fill_gregset (struct reg *gregset, int regno)
{
  int i;
  for (i = ARM_A1_REGNUM; i < ARM_SP_REGNUM; i++)
    if ((regno == -1 || regno == i))
      regcache_collect (i, &gregset->r[i]);
  if (regno == -1 || regno == ARM_SP_REGNUM)
      regcache_collect (ARM_SP_REGNUM, &gregset->r_sp);
  if (regno == -1 || regno == ARM_LR_REGNUM)
      regcache_collect (ARM_LR_REGNUM, &gregset->r_lr);
  if (regno == -1 || regno == ARM_PC_REGNUM)
      regcache_collect (ARM_PC_REGNUM, &gregset->r_pc);
  if (regno == -1 || regno == ARM_PS_REGNUM)
      regcache_collect (ARM_PS_REGNUM, &gregset->r_cpsr);
}
void fill_gregset ( struct reg * gregset , int regno ) { int i ; for ( i = ARM_A1_REGNUM ; i < ARM_SP_REGNUM ; i ++ ) if ( ( regno == -1 || regno == i ) ) regcache_collect ( i , & gregset -> r [ i ] ) ; if ( regno == -1 || regno == ARM_SP_REGNUM ) regcache_collect ( ARM_SP_REGNUM , & gregset -> r_sp ) ; if ( regno == -1 || regno == ARM_LR_REGNUM ) regcache_collect ( ARM_LR_REGNUM , & gregset -> r_lr ) ; if ( regno == -1 || regno == ARM_PC_REGNUM ) regcache_collect ( ARM_PC_REGNUM , & gregset -> r_pc ) ; if ( regno == -1 || regno == ARM_PS_REGNUM ) regcache_collect ( ARM_PS_REGNUM , & gregset -> r_cpsr ) ; }
Fill register REGNO (if it is a general-purpose register) in
GREGSETPS with the value in GDB's register array.
Fill register REGNO ( if it is a general - purpose register ) in GREGSETPS with the value in GDB ' s register array .