* sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
[deliverable/binutils-gdb.git] / gdb / sparc-nat.c
index 60d2989e4e21fda022ef105e1a198c66f531ce1f..3d936fcc8fc9fec7e14aea8b0cfd65e726ea9295 100644 (file)
@@ -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.025161 seconds and 4 git commands to generate.