* cli/cli-decode.c (print_doc_line): Use stream instead of
[deliverable/binutils-gdb.git] / gdb / i386gnu-nat.c
index 104a7137d2edfc1399d3ad46499ab8b2ed0b3fd4..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
-   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.
 
@@ -232,7 +232,8 @@ gnu_store_registers (struct target_ops *ops,
       state = proc_get_state (thread, 1);
       if (!state)
        {
-         warning (_("Couldn't store registers into %s"), proc_string (thread));
+         warning (_("Couldn't store registers into %s"),
+                  proc_string (thread));
          return;
        }
 
@@ -259,7 +260,8 @@ gnu_store_registers (struct target_ops *ops,
                  regcache_raw_supply (regcache, check_regno,
                                       REG_ADDR (state, check_regno));
                else
-                 warning (_("... also writing this register!  Suspicious..."));
+                 warning (_("... also writing this register!  "
+                            "Suspicious..."));
              }
        }
 
@@ -270,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
@@ -278,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.024201 seconds and 4 git commands to generate.