[patch 2/2] Accelerate lookup_symbol_aux_objfile 8x

Jan Kratochvil jan.kratochvil@redhat.com
Thu Oct 23 18:29:00 GMT 2014


On Wed, 22 Oct 2014 11:40:18 +0200, Doug Evans wrote:
> When I think of primary and non-primary symtabs I think of .c/.cc
> (primary) and .h (non-primary).
> Now we've got "secondary" dwz-created symtabs.

dwz-created symtabs are primary, they can contain symbols (although that
happens rarely).


> Therefore while this patch avoids searching dwz secondary symtabs
> multiple times, we will now search symtabs for headers whereas before
> we wouldn't (and thus search symtabs for .c/.cc files an extra time
> for each included header).

Addressed in the new patch sent in the other mail, thanks.


> [Our symbol table data structures and code sucks in so many major ways.
> What'd I'd like to see happen is some deeper changes, and have some
> planned when I get the time, but I'm not going to impose that on this
> patch set. :-)]

There are many possible improvements of GDB as usual.  Just I find this
patchset already done and providing in fact good-enough-for-me acceleration.


Jan



More information about the Gdb-patches mailing list