* paread.c (pa_symfile_init): Check for the existance of stabs
authorFred Fish <fnf@specifix.com>
Mon, 13 Dec 1993 14:46:21 +0000 (14:46 +0000)
committerFred Fish <fnf@specifix.com>
Mon, 13 Dec 1993 14:46:21 +0000 (14:46 +0000)
after DBX_TEXT_SECT has been initialized.

gdb/ChangeLog
gdb/paread.c

index c114ae59ac00373a20f935e53a40567cd834d960..b97d85af0f00a149d20ef3b3a3ed21046c659370 100644 (file)
@@ -1,3 +1,8 @@
+Mon Dec 13 06:42:37 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
+
+       * paread.c (pa_symfile_init): Check for the existance of stabs
+       after DBX_TEXT_SECT has been initialized.
+
 Tue Nov 23 17:29:28 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
 
         * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
index 55b0c2e8acc29e368fa56ecca69cca9772152c63..a7922f2c63ad3b88079f5a6937017d651e2c4e4d 100644 (file)
@@ -412,11 +412,6 @@ pa_symfile_init (objfile)
 
   memset ((PTR) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info));
 
-  if (!stabsect)
-    return;
-
-  if (!stringsect)
-    error ("Found stabs, but not string section");
 
   /* FIXME POKING INSIDE BFD DATA STRUCTURES */
 #define        STRING_TABLE_OFFSET     (stringsect->filepos)
@@ -429,6 +424,12 @@ pa_symfile_init (objfile)
   if (!DBX_TEXT_SECT (objfile))
     error ("Can't find $TEXT$ section in symbol file");
 
+  if (!stabsect)
+    return;
+
+  if (!stringsect)
+    error ("Found stabs, but not string section");
+  
   /* FIXME: I suspect this should be external_nlist.  The size of host
      types like long and bfd_vma should not affect how we read the
      file.  */
This page took 0.028567 seconds and 4 git commands to generate.