diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-09-05 02:13:11 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-09-05 02:13:11 +0000 |
commit | ef96bde82e147421678d9f5390f5d3632d314d2c (patch) | |
tree | b04a155ef7510c213671fa8ef90f11bc212e49dc /gdb/dwarfread.c | |
parent | 4961b73108c1d1783815b0e5fd03b9fc0e4fe04b (diff) | |
download | gdb-ef96bde82e147421678d9f5390f5d3632d314d2c.zip gdb-ef96bde82e147421678d9f5390f5d3632d314d2c.tar.gz gdb-ef96bde82e147421678d9f5390f5d3632d314d2c.tar.bz2 |
2001-09-04 Elena Zannoni <ezannoni@redhat.com>
From Daniel Jacobowitz <drow@mvista.com>
* 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.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index 0bfb4fd..d6258b3 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -706,8 +706,9 @@ dwarf_build_psymtabs (struct objfile *objfile, int mainline, file_ptr dbfoff, Since we have no idea how many DIES we are looking at, we just guess some arbitrary value. */ - if (mainline || objfile->global_psymbols.size == 0 || - objfile->static_psymbols.size == 0) + if (mainline + || (objfile->global_psymbols.size == 0 + && objfile->static_psymbols.size == 0)) { init_psymbol_list (objfile, 1024); } |