This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/17604] New: Stop demangling ELF symbols, at least by default when we have DWARF


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]