* arm-tdep.c: Include "observer.h".
[deliverable/binutils-gdb.git] / gdb / corelow.c
index bfa2893e5ad07b102a5bb47b0ac543ff793ecf39..f65a89cbd0c85329b808d32fcd0f426e2cfec17e 100644 (file)
@@ -615,9 +615,9 @@ get_core_registers (struct target_ops *ops,
                                 ".reg2", 2, "floating-point", 0);
     }
 
-  /* Supply dummy value for all registers not found in the core.  */
+  /* Mark all registers not found in the core as unavailable.  */
   for (i = 0; i < gdbarch_num_regs (get_regcache_arch (regcache)); i++)
-    if (!regcache_valid_p (regcache, i))
+    if (regcache_register_status (regcache, i) == REG_UNKNOWN)
       regcache_raw_supply (regcache, i, NULL);
 }
 
This page took 0.0245880000000001 seconds and 4 git commands to generate.