aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-07-28 04:22:18 +0000
committerFred Fish <fnf@specifix.com>1992-07-28 04:22:18 +0000
commitd07734e31fb134371b9bea71fc2736f7c28f4433 (patch)
tree807bcfb860cf9fc6eb8ba46c2a707cd2311264d8 /gdb/dwarfread.c
parent9e2b3581cb9edfd9977256539e64cf0d5f0f224d (diff)
downloadgdb-d07734e31fb134371b9bea71fc2736f7c28f4433.zip
gdb-d07734e31fb134371b9bea71fc2736f7c28f4433.tar.gz
gdb-d07734e31fb134371b9bea71fc2736f7c28f4433.tar.bz2
* Makefile.in (VERSION): Bump to 4.6.2.
* Makefile.in (SFILES_MAINDIR): Add stabsread.c * Makefile.in (OBS): Add stabsread.o * Makefile.in (stabsread.o): Add build rule. * stabsread.c, stabsread.h: New files. * buildsym.c: Split out stabs specific support to stabsread.c. * buildsym.h: Split out stabs specific support to stabsread.h. * dbxread.c (stabsread.h): Include * dbxread.c (dbx_new_init): Call stabsread_new_init. * dbxread.c (dbx_psymtab_to_symtab_1): Call stabsread_init. * dbxread.c (read_ofile_symtab): Call end_stabs. * dbxread.c (process_one_symbol): Call end_stabs and start_stabs. * dbxread.c (elfstab_build_psymtabs): Call stabsread_new_init. * dwarfread.c (psymtab_to_symtab_1): Call buildsym_init, add really_free_pendings to cleanups. * elfread.c (elf_new_init): Call stabsread_new_init. * gdbtypes.c: Small changes to maintenance commands. * mipsread.c (stabsread.h): Include. * mipsread.c (psymtab_to_symtab_1): Call end_stabs. * xcoffread.c (stabsread.h): Include. * xcoffread.c (global_stabs): Remove redundant def. * xcoffread.c (read_xcoff_symtab): Call start_stabs and end_stabs.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 38714e2..9e39f4f 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -2073,6 +2073,7 @@ psymtab_to_symtab_1 (pst)
struct partial_symtab *pst;
{
int i;
+ struct cleanup *old_chain;
if (pst != NULL)
{
@@ -2105,6 +2106,8 @@ psymtab_to_symtab_1 (pst)
}
if (DBLENGTH (pst)) /* Otherwise it's a dummy */
{
+ buildsym_init ();
+ old_chain = make_cleanup (really_free_pendings, 0);
pst -> symtab = read_ofile_symtab (pst);
if (info_verbose)
{
@@ -2113,6 +2116,7 @@ psymtab_to_symtab_1 (pst)
fflush (stdout);
}
sort_symtab_syms (pst -> symtab);
+ do_cleanups (old_chain);
}
pst -> readin = 1;
}