]> Git Repo - binutils.git/blobdiff - gdb/corelow.c
Thu Jul 18 01:22:01 1996 Geoffrey Noer <[email protected]>
[binutils.git] / gdb / corelow.c
index 48bc1843f7b06110b9bfc0684b05c86546fa4bc0..0d01bf03b71a51ae80e79df5733efc116bae2345 100644 (file)
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "bfd.h"
 #include "target.h"
 #include "gdbcore.h"
-#include "thread.h"
+#include "gdbthread.h"
 
 /* List of all available core_fns.  On gdb startup, each core file register
    reader calls add_core_fns() to register information on each core format it
@@ -133,7 +133,8 @@ add_to_thread_list (abfd, asect, reg_sect_arg)
 
 /* Warning, Will Robinson, looking at BFD private data! */
 
-  if (asect->filepos == reg_sect->filepos) /* Did we find .reg? */
+  if (reg_sect != NULL
+      && asect->filepos == reg_sect->filepos) /* Did we find .reg? */
     inferior_pid = thread_id;  /* Yes, make it current */
 }
 
This page took 0.025714 seconds and 4 git commands to generate.