aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-12-17 16:50:18 +0000
committerAndrew Cagney <cagney@redhat.com>1997-12-17 16:50:18 +0000
commit4dbdbfc4d3dff2234894d5a048a84f0361277213 (patch)
tree39a40cd323fcdceb56e40d75be1d960cbd458edb /gdb/mdebugread.c
parent6124cd1e59f077d87fb718f1e36ead2cbe38c6ff (diff)
downloadgdb-4dbdbfc4d3dff2234894d5a048a84f0361277213.zip
gdb-4dbdbfc4d3dff2234894d5a048a84f0361277213.tar.gz
gdb-4dbdbfc4d3dff2234894d5a048a84f0361277213.tar.bz2
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
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index f3f3ec4..807c36f 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -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;