2011-05-26 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / i386gnu-nat.c
index 808972939dc44f8d85a0713231089b219061339b..89354dc0b94ae56f634fcd5f59f90f6154f13ebc 100644 (file)
@@ -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));
        }
 
This page took 0.023708 seconds and 4 git commands to generate.