mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
* arm-linux-nat.c (fetch_register, store_register): Use
ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM. * arm-linux-tdep.c (arm_linux_supply_gregset, arm_linux_collect_gregset): Likewise. * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New. * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
This commit is contained in:
@@ -382,7 +382,7 @@ arm_linux_supply_gregset (const struct regset *regset,
|
||||
{
|
||||
if (arm_apcs_32)
|
||||
regcache_raw_supply (regcache, ARM_PS_REGNUM,
|
||||
gregs + INT_REGISTER_SIZE * ARM_CPSR_REGNUM);
|
||||
gregs + INT_REGISTER_SIZE * ARM_CPSR_GREGNUM);
|
||||
else
|
||||
regcache_raw_supply (regcache, ARM_PS_REGNUM,
|
||||
gregs + INT_REGISTER_SIZE * ARM_PC_REGNUM);
|
||||
@@ -416,7 +416,7 @@ arm_linux_collect_gregset (const struct regset *regset,
|
||||
{
|
||||
if (arm_apcs_32)
|
||||
regcache_raw_collect (regcache, ARM_PS_REGNUM,
|
||||
gregs + INT_REGISTER_SIZE * ARM_CPSR_REGNUM);
|
||||
gregs + INT_REGISTER_SIZE * ARM_CPSR_GREGNUM);
|
||||
else
|
||||
regcache_raw_collect (regcache, ARM_PS_REGNUM,
|
||||
gregs + INT_REGISTER_SIZE * ARM_PC_REGNUM);
|
||||
|
||||
Reference in New Issue
Block a user