aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 68eed37..3dcb2d1 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -512,6 +512,7 @@ end_symtab ()
symtab->blockvector = blockvector;
symtab->free_code = free_linetable;
symtab->filename = last_source_file;
+ symtab->dirname = NULL;
lv = line_vector;
lv->nitems = line_vector_index;
symtab->linetable = (struct linetable *)
@@ -520,6 +521,9 @@ end_symtab ()
symtab->nlines = 0;
symtab->line_charpos = 0;
+ symtab->language = language_unknown;
+ symtab->fullname = NULL;
+
#ifdef TDESC
symtab->coffsem = last_coffsem;
symtab->coffsyn = last_coffsyn;
@@ -624,7 +628,12 @@ find_linenos (abfd, asect, vpinfo)
if (count == 0)
return;
- size = count * sizeof (struct lineno);
+#if !defined (LINESZ)
+/* Just in case, you never know what to expect from those
+ COFF header files. */
+#define LINESZ (sizeof (struct lineno))
+#endif /* No LINESZ. */
+ size = count * LINESZ;
info = (struct coff_symfile_info *)vpinfo;
/* WARNING WILL ROBINSON! ACCESSING BFD-PRIVATE DATA HERE! FIXME! */