From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6871 invoked by alias); 23 Jan 2004 17:56:58 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6864 invoked from network); 23 Jan 2004 17:56:57 -0000 Received: from unknown (HELO coconut.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 23 Jan 2004 17:56:57 -0000 Received: from coconut.kealia.com (localhost.localdomain [127.0.0.1]) by coconut.kealia.com (8.12.8/8.12.8) with ESMTP id i0NHuuSH012838; Fri, 23 Jan 2004 09:56:56 -0800 Received: (from carlton@localhost) by coconut.kealia.com (8.12.8/8.12.8/Submit) id i0NHuuIR012836; Fri, 23 Jan 2004 09:56:56 -0800 X-Authentication-Warning: coconut.kealia.com: carlton set sender to carlton@kealia.com using -f To: gdb-patches@sources.redhat.com Subject: [patch] fix for PR gdb/1534 From: David Carlton Date: Fri, 23 Jan 2004 17:56:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-01/txt/msg00628.txt.bz2 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 * 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;