Mention PR gdb/17096 in ChangeLog
[deliverable/binutils-gdb.git] / gdb / alpha-nat.c
index 1a55ea9dacee9d7f30275201d7eeacfcfc27edf9..4739cac67c184270be630c5c6d627741b549eee2 100644 (file)
@@ -1,6 +1,5 @@
 /* Low level Alpha interface, for GDB when running native.
-   Copyright (C) 1993, 1995, 1996, 1998, 1999, 2000, 2001, 2003, 2007, 2008,
-   2009, 2010, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1993-2014 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -18,7 +17,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-#include "gdb_string.h"
+#include <string.h>
 #include "inferior.h"
 #include "gdbcore.h"
 #include "target.h"
@@ -101,6 +100,15 @@ fetch_osf_core_registers (struct regcache *regcache,
          regcache_raw_supply (regcache, regno, NULL);
          continue;
        }
+
+      if (regno == ALPHA_ZERO_REGNUM)
+       {
+         const gdb_byte zero[8] = { 0 };
+
+         regcache_raw_supply (regcache, regno, zero);
+         continue;
+       }
+
       addr = 8 * core_reg_mapping[regno];
       if (addr < 0 || addr >= core_reg_size)
        {
This page took 0.024128 seconds and 4 git commands to generate.