* doc/binutils.texi: Add --dwarf-check option.
[deliverable/binutils-gdb.git] / gdb / i386gnu-nat.c
index 808972939dc44f8d85a0713231089b219061339b..f15cf0c994d7f2ba4348d73c5e1d3202f40717cd 100644 (file)
@@ -1,7 +1,7 @@
 /* Low level interface to i386 running the GNU Hurd.
 
-   Copyright (C) 1992, 1995, 1996, 1998, 2000, 2001, 2004, 2007, 2008, 2009,
-   2010, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1992, 1995-1996, 1998, 2000-2001, 2004, 2007-2012 Free
+   Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -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.059937 seconds and 4 git commands to generate.