diff options
author | qiyao <qiyao> | 2011-01-30 23:16:28 +0000 |
---|---|---|
committer | qiyao <qiyao> | 2011-01-30 23:16:28 +0000 |
commit | 66978410554d7ae79de83fd5d9a3c4c710fb60db (patch) | |
tree | 392a23bde5bff7471472abe9c3bd11c69672f73c /gdb/i386gnu-nat.c | |
parent | 8a49b5a7e8b2f5425cf1181731dc0b2ca0ef639c (diff) | |
download | gdb-66978410554d7ae79de83fd5d9a3c4c710fb60db.tar.gz |
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 808972939dc..89354dc0b94 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)); } |