From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13866 invoked by alias); 13 Jun 2014 19:34:59 -0000 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 Received: (qmail 13827 invoked by uid 48); 13 Jun 2014 19:34:58 -0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/12707] physname regression: set print demangle off Date: Fri, 13 Jun 2014 19:34: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-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q2/txt/msg00432.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=12707 --- Comment #7 from Tom Tromey --- (In reply to Tom Tromey from comment #6) > I looked into my idea from comment #3 a bit. > Symbol lookup would proceed by first looking up a name in this map, > and, if found, using the mangled form as the search key. For completion we can iterate over the names in the hash table. > This would let us remove the demangled hash entirely from minimal > symbols. > > To get the reverse direction to be efficient we could make a second > hash table, mapping the mangled form to a canonical demangled form. If we needed this direction (not clear) then we could just re-run the demangler anyway. Or we can do like the current code, where the name in the symtab actually points to an object in the hash. > It all seems doable, maybe not even too hard. And it has some > benefits for users. However I hesitated to follow through because I > am concerned it might be taking the symbol tables in the wrong > direction. I'm not as concerned about this any more. One wrinkle seems to be that we'd need a name canonicalizer for every language. Of course we ought to have this anyway ... the whole idea is really about changing the representation of the objects, not really about changing anything fundamental. Any problems exposed are problems already, I think. -- You are receiving this mail because: You are on the CC list for the bug.