"Andi Kleen" <ak@xxxxxxx> writes:
>
> Your machine is probably heavily swapping/trashing because gdb needs so much
> memory. You can check its memory use with running top during the load.
> gdb also deals very poorly with very big symbol tables (and worse with big
> C++ programs which have very long symbol names too). An useful resource is
> http://www.mozilla.org/unix/debugging-faq.html , it explains some techniques
> that may help.
Err, not anymore.
I've fixed the memory usage as of a few weeks ago, at least for DWARF2.
The patches haven't been commited yet (I'll do it in about a week),
but they are on gdb-patches C++ symbol searches also used to be
linear, and are now binary searches (It was a mangling issue).
You want the most recent dwarf2 patch i submitted, and the C++ patch
from a few weeks ago.
This should bring your load time down to something much more
reasonable, as well as your memory usage.
I also fixed name completion so quoting is not necessary anymore.
It's cute when people don't submit bug reports on this stuff, so that
I can't make a case to anyone to schedule me to fix it.
I've also only been working on fixing C++ in GDB since february, and
it was amazingly broken, so give me time.
The mozilla guys already love me.
--Dan
C++ support maintainer - GDB.
|