From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15078 invoked by alias); 11 Dec 2009 23:56:13 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 15067 invoked by uid 22791); 11 Dec 2009 23:56:13 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org From: Tom Tromey To: Cary Coutant Cc: Dodji Seketeli , "GDB\/Archer list" Subject: Re: [RFC] Proposal for a new DWARF name index section References: <4A7FE28D.4050901@redhat.com> <4A8D8868.3010302@redhat.com> Reply-To: Tom Tromey Date: Fri, 11 Dec 2009 23:56:00 -0000 In-Reply-To: (Cary Coutant's message of "Tue, 17 Nov 2009 15:45:59 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2009-q4/txt/msg00092.txt.bz2 >>>>> "Cary" == Cary Coutant writes: Cary> Now how will gdb know whether or not the pubnames index actually has Cary> all of this extra info? A suggestion to have gdb look at the producer Cary> string was shot down as ugly, but compare that to the alternative of Cary> using a non-standard index. You could instead tie it to the switch to Cary> DWARF-4 and just check the section version number in the compilation Cary> unit header (the version number for .debug_pubnames isn't scheduled to Cary> change with DWARF-4, unfortunately). Another alternative is just to Cary> have gdb use the pubnames index if it's present, and any name that Cary> isn't in the index simply won't be found without qualification. It occurred to me today that we could define a GNU-local attribute that GCC (and whatever DWARF-rewriting tool we come up with to generate the indices post-facto) can put into the CU DIE. What do you think of that? Tom