From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16195 invoked by alias); 14 Nov 2014 23:59: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 16166 invoked by uid 48); 14 Nov 2014 23:59:58 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/17604] New: Stop demangling ELF symbols, at least by default when we have DWARF Date: Fri, 14 Nov 2014 23:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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-q4/txt/msg00259.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17604 Bug ID: 17604 Summary: Stop demangling ELF symbols, at least by default when we have DWARF Product: gdb Version: 7.8 Status: NEW Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: dje at google dot com PR 17603 made me want to try an experiment of measuring gdb startup time on my monster benchmark if we stop demangling ELF symbols. I did a quick experiment, but the data is promising. In the past I've measured 12 seconds of the 13 seconds of gdb startup time being due to reading ELF symbols (measured by just #if 0-ing out the code to read them). If I #if 0 out the code to generate and store demangled copies of ELF symbols then the 13 seconds goes down to 2.5 seconds. Nice. So maybe we can generate demangled copies of ELF symbols lazily. One question I'd like to see answered is under what conditions do we *need* demangled ELF symbols *when* we have DWARF. Having demangled copies of ELF symbols can hide bugs in reading DWARF. E.g., PR 17602. I'm filing this separately from 17603 as this PR addresses the performance of reading ELF symbols. PR 17603 addresses the related issue where usage of minsyms hides bugs in the DWARF reader. -- You are receiving this mail because: You are on the CC list for the bug.