From ef96bde82e147421678d9f5390f5d3632d314d2c Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Wed, 5 Sep 2001 02:13:11 +0000 Subject: 2001-09-04 Elena Zannoni From Daniel Jacobowitz * dbxread.c (dbx_symfile_read): Only reinitialize the psymbol list if mainline or if both static and global lists are empty. * dwarf2read.c (dwarf2_build_psymtabs): Likewise. * dwarfread.c (dwarf_build_psymtabs): Likewise. * xcoffread.c (xcoff_initial_scan): Likewise. * os9kread.c (os9k_symfile_read): Likewise. --- gdb/xcoffread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/xcoffread.c') diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 6e52710..5e7b935 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2684,8 +2684,8 @@ xcoff_initial_scan (struct objfile *objfile, int mainline) /* If we are reinitializing, or if we have never loaded syms yet, init */ if (mainline - || objfile->global_psymbols.size == 0 - || objfile->static_psymbols.size == 0) + || (objfile->global_psymbols.size == 0 + && objfile->static_psymbols.size == 0)) /* I'm not sure how how good num_symbols is; the rule of thumb in init_psymbol_list was developed for a.out. On the one hand, num_symbols includes auxents. On the other hand, it doesn't -- cgit v1.1