This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] fix for PR gdb/1534
- From: David Carlton <carlton at kealia dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 23 Jan 2004 09:56:55 -0800
- Subject: [patch] fix for PR gdb/1534
As PR gdb/1534 points out, I neglected to clear
objfile->cp_namespace_symtab in reread_symbols. The following patch
cures the problem, according to the submitter; I've tested it on
i686-pc-linux-gnu with multiple GCC/debug combinations and gotten no
regressions.
Committed as obvious.
David Carlton
carlton@kealia.com
2004-01-23 David Carlton <carlton@kealia.com>
* symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
Fix for PR symtab/1534.
Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.116
diff -u -p -r1.116 symfile.c
--- symfile.c 19 Jan 2004 19:56:02 -0000 1.116
+++ symfile.c 23 Jan 2004 17:09:52 -0000
@@ -1918,6 +1918,7 @@ reread_symbols (void)
objfile->symtabs = NULL;
objfile->psymtabs = NULL;
objfile->free_psymtabs = NULL;
+ objfile->cp_namespace_symtab = NULL;
objfile->msymbols = NULL;
objfile->sym_private = NULL;
objfile->minimal_symbol_count = 0;