aboutsummaryrefslogtreecommitdiff
path: root/gdb/paread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1993-12-13 14:46:21 +0000
committerFred Fish <fnf@specifix.com>1993-12-13 14:46:21 +0000
commitf3628b3985efc865d548a190f989ac93d23212d0 (patch)
treef38075d7115ee8fd85ae3b3f8e636c06be35db0f /gdb/paread.c
parent9f6294075ee0c6a0414499600eed661ce5aee2a3 (diff)
downloadgdb-f3628b3985efc865d548a190f989ac93d23212d0.zip
gdb-f3628b3985efc865d548a190f989ac93d23212d0.tar.gz
gdb-f3628b3985efc865d548a190f989ac93d23212d0.tar.bz2
* paread.c (pa_symfile_init): Check for the existance of stabs
after DBX_TEXT_SECT has been initialized.
Diffstat (limited to 'gdb/paread.c')
-rw-r--r--gdb/paread.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/paread.c b/gdb/paread.c
index 55b0c2e..a7922f2 100644
--- a/gdb/paread.c
+++ b/gdb/paread.c
@@ -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. */