diff options
author | Yao Qi <yao@codesourcery.com> | 2011-01-30 23:16:33 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-01-30 23:16:33 +0000 |
commit | 672c979515d79c8276095e91af979019bc481258 (patch) | |
tree | 4f0ca54166abc41df13170f6fb5b8fc349ac945e /gdb/arm-linux-nat.c | |
parent | 38eb90039595c14f7f996e80d74ce33ca1c592b6 (diff) | |
download | gdb-672c979515d79c8276095e91af979019bc481258.zip gdb-672c979515d79c8276095e91af979019bc481258.tar.gz gdb-672c979515d79c8276095e91af979019bc481258.tar.bz2 |
2011-01-31 Yao Qi <yao@codesourcery.com>
* arm-linux-nat.c: Update calls to regcache_register_status
instead of regcache_valid_p.
* aix-thread.c: Likewise.
* i386gnu-nat.c: Likewise.
Diffstat (limited to 'gdb/arm-linux-nat.c')
-rw-r--r-- | gdb/arm-linux-nat.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index 23ac1eb..e501882 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -190,7 +190,8 @@ store_fpregister (const struct regcache *regcache, int regno) } /* Store fpsr. */ - if (ARM_FPS_REGNUM == regno && regcache_valid_p (regcache, ARM_FPS_REGNUM)) + if (ARM_FPS_REGNUM == regno + && REG_VALID == regcache_register_status (regcache, ARM_FPS_REGNUM)) regcache_raw_collect (regcache, ARM_FPS_REGNUM, fp + NWFPE_FPSR_OFFSET); /* Store the floating point register. */ @@ -226,12 +227,12 @@ store_fpregs (const struct regcache *regcache) } /* Store fpsr. */ - if (regcache_valid_p (regcache, ARM_FPS_REGNUM)) + if (REG_VALID == regcache_register_status (regcache, ARM_FPS_REGNUM)) regcache_raw_collect (regcache, ARM_FPS_REGNUM, fp + NWFPE_FPSR_OFFSET); /* Store the floating point registers. */ for (regno = ARM_F0_REGNUM; regno <= ARM_F7_REGNUM; regno++) - if (regcache_valid_p (regcache, regno)) + if (REG_VALID == regcache_register_status (regcache, regno)) collect_nwfpe_register (regcache, regno, fp); ret = ptrace (PTRACE_SETFPREGS, tid, 0, fp); @@ -328,7 +329,7 @@ store_register (const struct regcache *regcache, int regno) int ret, tid; elf_gregset_t regs; - if (!regcache_valid_p (regcache, regno)) + if (REG_VALID != regcache_register_status (regcache, regno)) return; /* Get the thread id for the ptrace call. */ @@ -378,11 +379,11 @@ store_regs (const struct regcache *regcache) for (regno = ARM_A1_REGNUM; regno <= ARM_PC_REGNUM; regno++) { - if (regcache_valid_p (regcache, regno)) + if (REG_VALID == regcache_register_status (regcache, regno)) regcache_raw_collect (regcache, regno, (char *) ®s[regno]); } - if (arm_apcs_32 && regcache_valid_p (regcache, ARM_PS_REGNUM)) + if (arm_apcs_32 && REG_VALID == regcache_register_status (regcache, ARM_PS_REGNUM)) regcache_raw_collect (regcache, ARM_PS_REGNUM, (char *) ®s[ARM_CPSR_GREGNUM]); @@ -446,17 +447,20 @@ store_wmmx_regs (const struct regcache *regcache) } for (regno = 0; regno < 16; regno++) - if (regcache_valid_p (regcache, regno + ARM_WR0_REGNUM)) + if (REG_VALID == regcache_register_status (regcache, + regno + ARM_WR0_REGNUM)) regcache_raw_collect (regcache, regno + ARM_WR0_REGNUM, ®buf[regno * 8]); for (regno = 0; regno < 2; regno++) - if (regcache_valid_p (regcache, regno + ARM_WCSSF_REGNUM)) + if (REG_VALID == regcache_register_status (regcache, + regno + ARM_WCSSF_REGNUM)) regcache_raw_collect (regcache, regno + ARM_WCSSF_REGNUM, ®buf[16 * 8 + regno * 4]); for (regno = 0; regno < 4; regno++) - if (regcache_valid_p (regcache, regno + ARM_WCGR0_REGNUM)) + if (REG_VALID == regcache_register_status (regcache, + regno + ARM_WCGR0_REGNUM)) regcache_raw_collect (regcache, regno + ARM_WCGR0_REGNUM, ®buf[16 * 8 + 2 * 4 + regno * 4]); |