From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4488 invoked by alias); 2 May 2012 00:38:21 -0000 Received: (qmail 4466 invoked by uid 22791); 2 May 2012 00:38:20 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 May 2012 00:38:07 +0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/11942] Duplicate type_hash when reloading debug info of dwarf4 signatured types. Date: Wed, 02 May 2012 00:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dje at google dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00066.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D11942 dje at google dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #3 from cvs-commit at gcc dot gnu.org 2010-08-25 00:09:39 UTC --- Subject: Bug 11942 CVSROOT: /cvs/src Module name: src Changes by: devans@sourceware.org 2010-08-25 00:09:14 Modified files: gdb : ChangeLog dwarf2read.c=20 gdb/testsuite : ChangeLog=20 Added files: gdb/testsuite/gdb.dwarf2: dw4-sig-types-b.cc dw4-sig-types.cc=20 dw4-sig-types.exp dw4-sig-types.h=20 Log message: PR symtab/11942 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash, debug_types_type_hash. (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash. All uses updated. (lookup_die_type): Renamed from tag_type_to_tag. First look in appropriate type_hash table. All callers updated. (allocate_signatured_type_table): Renamed from allocate_signatured_type_hash_table. All callers updated. (create_signatured_type_table_from_index): Renamed from create_signatured_type_hash_from_index. All callers updated. (read_die_type): Add comment. Move actual reading to ... (read_die_type_1): ... here. New function. (follow_die_ref_or_sig): Tweak comment. (set_die_type): Rewrite to use appropriate choice of debug_info_type_hash or debug_types_type_hash. (get_die_type_at_offset): New function. (get_die_type): Call it. =09 testsuite/ PR symtab/11942 * gdb.dwarf2/dw4-sig-types.cc: New file. * gdb.dwarf2/dw4-sig-types.h: New file. * gdb.dwarf2/dw4-sig-types-b.cc: New file. * gdb.dwarf2/dw4-sig-types.exp: New file. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=3Ds= rc&r1=3D1.12114&r2=3D1.12115 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot= =3Dsrc&r1=3D1.441&r2=3D1.442 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?c= vsroot=3Dsrc&r1=3D1.2428&r2=3D1.2429 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw4-s= ig-types-b.cc.diff?cvsroot=3Dsrc&r1=3DNONE&r2=3D1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw4-s= ig-types.cc.diff?cvsroot=3Dsrc&r1=3DNONE&r2=3D1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw4-s= ig-types.exp.diff?cvsroot=3Dsrc&r1=3DNONE&r2=3D1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw4-s= ig-types.h.diff?cvsroot=3Dsrc&r1=3DNONE&r2=3D1.1 --- Comment #4 from dje at google dot com 2012-05-02 00:37:47 UTC --- Fixed in referenced patch. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.