2011-10-21 Jan Glauber <jang@linux.vnet.ibm.com>
[deliverable/binutils-gdb.git] / gdb / sparc-nat.c
index 57c0755f3160be04464ecfef83121ac1d54ef01d..3d936fcc8fc9fec7e14aea8b0cfd65e726ea9295 100644 (file)
@@ -1,6 +1,6 @@
 /* Native-dependent code for SPARC.
 
-   Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009
+   Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -159,7 +159,9 @@ sparc_fetch_inferior_registers (struct target_ops *ops,
 
   if (regnum == SPARC_G0_REGNUM)
     {
-      regcache_raw_supply (regcache, SPARC_G0_REGNUM, NULL);
+      gdb_byte zero[8] = { 0 };
+
+      regcache_raw_supply (regcache, SPARC_G0_REGNUM, &zero);
       return;
     }
 
This page took 0.023645 seconds and 4 git commands to generate.