This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/17604] New: Stop demangling ELF symbols, at least by default when we have DWARF
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 14 Nov 2014 23:59:57 +0000
- Subject: [Bug symtab/17604] New: Stop demangling ELF symbols, at least by default when we have DWARF
- Auto-submitted: auto-generated
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.