From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27310 invoked by alias); 21 Nov 2013 19:03:46 -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 27279 invoked by uid 48); 21 Nov 2013 19:03:46 -0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/12707] physname regression: set print demangle off Date: Thu, 21 Nov 2013 19:03: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: 2013-q4/txt/msg00349.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12707 --- Comment #6 from Tom Tromey --- I looked into my idea from comment #3 a bit. It occurred to me that we could hack the demangler a bit to return both the full demangled name and a pointer to the part just after the return type. Then we could enter both of these strings into a hash table mapping from the demangled forms back to the mangled name. Symbol lookup would proceed by first looking up a name in this map, and, if found, using the mangled form as the search key. 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. 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. -- You are receiving this mail because: You are on the CC list for the bug.