Re: [PATCH] On-demand loading of shlib's debuginfo

Tom Tromey
2011-07-21T20:27:32Z

>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:

Pedro> I was under the impression that the debug info loading would be
Pedro> the major hog, and lazying that alone would stand on its own (as
Pedro> this patch, but with a solib_contains_address_pc_p call in
Pedro> solib_on_demand_load instead of the new match_pc_solist stuff).

There's also this, which I still haven't checked in:

http://sourceware.org/ml/gdb-patches/2011-03/msg00606.html

This defers reading debuginfo for new inferiors until some event happens
that requires it.

It turns out that Gary's recent patches will (most likely -- I didn't
try it yet) fix the problem pointed out in that message.

Anyway, this approach does help quite a bit.

Tom