aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-08-30 19:50:47 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-08-30 19:50:47 +0000
commitcbba020f3f6ac6389c321ba75a412ab360fecd91 (patch)
treee0116f2be6a667c3054eeee7b6db80645be11317 /gdb/dbxread.c
parent4360308809563543724f333be447a88cb4ac4730 (diff)
downloadgdb-cbba020f3f6ac6389c321ba75a412ab360fecd91.zip
gdb-cbba020f3f6ac6389c321ba75a412ab360fecd91.tar.gz
gdb-cbba020f3f6ac6389c321ba75a412ab360fecd91.tar.bz2
* stabsread.h, dbxread.c (end_psymtab): Return NULL if the psymtab
was empty and thrown away. * mipsread.c (parse_partial_symbols): Do not add empty psymtabs to dependency list, skip self dependencies. * mipsread.c (parse_fdr): Removed, obsolete. * mipsread.c (parse_lines): Check for cbLine being zero, not cbLineOffset. * mipsread.c (struct symloc): Add pst_language. * mipsread.c (parse_partial_symbols): Set up proper language for header files, save it in pst_language for psymtab_to_symtab_1. * mipsread.c (psymtab_to_symtab_1): Use pst_language.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 81e3827..0ea2687 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -1049,19 +1049,12 @@ start_psymtab (objfile, section_offsets,
return result;
}
-/* Close off the current usage of a partial_symbol table entry. This
- involves setting the correct number of includes (with a realloc),
- setting the high text mark, setting the symbol length in the
- executable, and setting the length of the global and static lists
- of psymbols.
+/* Close off the current usage of PST.
+ Returns PST or NULL if the partial symtab was empty and thrown away.
- The global symbols and static symbols are then seperately sorted.
+ FIXME: List variables and peculiarities of same. */
- Then the partial symtab is put on the global list.
- *** List variables and peculiarities of same. ***
- */
-
-void
+struct partial_symtab *
end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
capping_text, dependency_list, number_dependencies)
struct partial_symtab *pst;
@@ -1245,7 +1238,11 @@ end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
pst->next = pst->objfile->free_psymtabs;
pst->objfile->free_psymtabs = pst;
+
+ /* Indicate that psymtab was thrown away. */
+ pst = (struct partial_symtab *)NULL;
}
+ return pst;
}
static void