mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 22:03:57 +08:00
* arm-linux-nat.c (store_register, store_regs): Handle
ARM_PS_REGNUM.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* arm-linux-nat.c (store_register, store_regs): Handle
|
||||||
|
ARM_PS_REGNUM.
|
||||||
|
|
||||||
2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
|
2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
|
* arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
|
||||||
|
@ -492,6 +492,12 @@ store_register (int regno)
|
|||||||
|
|
||||||
if (regno >= ARM_A1_REGNUM && regno <= ARM_PC_REGNUM)
|
if (regno >= ARM_A1_REGNUM && regno <= ARM_PC_REGNUM)
|
||||||
regcache_raw_collect (current_regcache, regno, (char *) ®s[regno]);
|
regcache_raw_collect (current_regcache, regno, (char *) ®s[regno]);
|
||||||
|
else if (arm_apcs_32 && regno == ARM_PS_REGNUM)
|
||||||
|
regcache_raw_collect (current_regcache, regno,
|
||||||
|
(char *) ®s[ARM_CPSR_REGNUM]);
|
||||||
|
else if (!arm_apcs_32 && regno == ARM_PS_REGNUM)
|
||||||
|
regcache_raw_collect (current_regcache, ARM_PC_REGNUM,
|
||||||
|
(char *) ®s[ARM_PC_REGNUM]);
|
||||||
|
|
||||||
ret = ptrace (PTRACE_SETREGS, tid, 0, ®s);
|
ret = ptrace (PTRACE_SETREGS, tid, 0, ®s);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
@ -524,6 +530,10 @@ store_regs (void)
|
|||||||
regcache_raw_collect (current_regcache, regno, (char *) ®s[regno]);
|
regcache_raw_collect (current_regcache, regno, (char *) ®s[regno]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (arm_apcs_32 && register_cached (ARM_PS_REGNUM))
|
||||||
|
regcache_raw_collect (current_regcache, ARM_PS_REGNUM,
|
||||||
|
(char *) ®s[ARM_CPSR_REGNUM]);
|
||||||
|
|
||||||
ret = ptrace (PTRACE_SETREGS, tid, 0, ®s);
|
ret = ptrace (PTRACE_SETREGS, tid, 0, ®s);
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user