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/i386gnu-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/i386gnu-nat.c')
-rw-r--r-- | gdb/i386gnu-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386gnu-nat.c b/gdb/i386gnu-nat.c index 8089729..89354dc 100644 --- a/gdb/i386gnu-nat.c +++ b/gdb/i386gnu-nat.c @@ -272,7 +272,7 @@ gnu_store_registers (struct target_ops *ops, proc_debug (thread, "storing all registers"); for (i = 0; i < I386_NUM_GREGS; i++) - if (regcache_valid_p (regcache, i)) + if (REG_VALID == regcache_register_status (regcache, i)) regcache_raw_collect (regcache, i, REG_ADDR (state, i)); } else @@ -280,7 +280,7 @@ gnu_store_registers (struct target_ops *ops, proc_debug (thread, "storing register %s", gdbarch_register_name (gdbarch, regno)); - gdb_assert (regcache_valid_p (regcache, regno)); + gdb_assert (REG_VALID == regcache_register_status (regcache, regno)); regcache_raw_collect (regcache, regno, REG_ADDR (state, regno)); } |