forked from Imagelibrary/binutils-gdb
o Fix code deleting psymtab entry from objfile's list.
Only worked if the first element in the list was being deleted. o When MAINLINE (reading main objectfile and need to clear out old data), change elfread.c so that the psymbol table is emptied once (in elf_symfile_read) instead of multiple times in each *_read_psymtab function. o For elf_symfile_read, load dwarf2 symbols last (so that they are searched for first). o In mdebug_psymtab_read, delete check to see if symbols for current source file already loaded. Test doesn't work for .h files. Above change works better
This commit is contained in:
@@ -2490,13 +2490,6 @@ parse_partial_symbols (objfile, section_offsets)
|
||||
|
||||
cur_fdr = fh = debug_info->fdr + f_idx;
|
||||
|
||||
/* If a partial symbol table has already been read for this file,
|
||||
don't make another one. This works around a problem with some
|
||||
compilers that emit both DWARF and mdebug sections for a single
|
||||
module. */
|
||||
if (lookup_partial_symtab (fdr_name (fh)))
|
||||
continue;
|
||||
|
||||
if (fh->csym == 0)
|
||||
{
|
||||
fdr_to_pst[f_idx].pst = NULL;
|
||||
|
||||
Reference in New Issue
Block a user