* NEWS: Add entry for stdio gdbserver.
[deliverable/binutils-gdb.git] / gdb / corelow.c
index bfa2893e5ad07b102a5bb47b0ac543ff793ecf39..33b96ae5fc128eccea64fe1860d4ed58bcbf35a8 100644 (file)
@@ -47,6 +47,7 @@
 #include "filenames.h"
 #include "progspace.h"
 #include "objfiles.h"
+#include "wrapper.h"
 
 
 #ifndef O_LARGEFILE
@@ -107,7 +108,7 @@ static struct target_ops core_ops;
 
 /* Link a new core_fns into the global core_file_fns list.  Called on
    gdb startup by the _initialize routine in each core file register
-   reader, to register information about each format the the reader is
+   reader, to register information about each format the reader is
    prepared to handle.  */
 
 void
@@ -428,7 +429,7 @@ core_open (char *filename, int from_tty)
      may be a thread_stratum target loaded on top of target core by
      now.  The layer above should claim threads found in the BFD
      sections.  */
-  target_find_new_threads ();
+  gdb_target_find_new_threads ();
 
   p = bfd_core_file_failing_command (core_bfd);
   if (p)
@@ -615,9 +616,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.044222 seconds and 4 git commands to generate.