[PATCH][gdb/symtab] Don't create duplicate psymtab for forward-imported CU

Simon Marchi simark@simark.ca
Wed Apr 22 13:45:31 GMT 2020


On 2020-04-22 2:13 a.m., Tom de Vries wrote:
>> [ Forgot to mention ]
>>
>> Using a 2.8GB libxul.so debug file from opensuse tumbleweed, build with
>> lto, we have:
>> ...
>> $ time.sh gdb -batch -iex "maint set dwarf max-cache-age 1000" -iex "set
>> language c" usr/lib/debug/usr/lib64/firefox/libxul.so-74.0-1.1.x86_64.debug
>> maxmem: 10417196
>> real: 116.62
>> user: 114.85
>> system: 2.37
>> ...
>> and with this patch:
>> ...
>> $ time.sh gdb -batch -iex "maint set dwarf max-cache-age 1000" -iex "set
>> language c" usr/lib/debug/usr/lib64/firefox/libxul.so-74.0-1.1.x86_64.debug
>> maxmem: 10436372
>> real: 77.42
>> user: 75.54
>> system: 2.46
>>
>> OK for trunk?

I just glanced at this and... wow, that's a big difference.

Simon



More information about the Gdb-patches mailing list