symtab/2254: Symbol loading in GDB too slow

Thomas McGuire
Mon Apr 16 14:38:00 GMT 2007

The following reply was made to PR symtab/2254; it has been noted by GNATS.

From: Thomas McGuire <>
To: Daniel Jacobowitz <>
Subject: Re: symtab/2254: Symbol loading in GDB too slow
Date: Mon, 16 Apr 2007 16:35:06 +0200

 > Symbol table loading is already heavily optimized.  GDB can't give you
 > miracles; how big are the libraries that you're trying to debug, 
 Seems like the libraries are indeed quite big. After issuing ldd kmail (which gave me 100 different libraries), I used ls -l -h on some of them which I suspected to be the bigest:
 62M 2007-04-15 13:08 /media/kdedev/home/build/KDE/kdepim/lib/
 7.6M 2007-04-10 22:36 /media/kdedev/home/kde/lib/
 21M 2007-04-10 22:35 /media/kdedev/home/kde/lib/
 15M 2007-04-15 13:16 /media/kdedev/home/kde/lib/
 42M 2007-04-10 22:36 /media/kdedev/home/kde/lib/
 54M 2007-04-10 22:37 /media/kdedev/home/kde/lib/
 37M 2007-04-10 22:36 /media/kdedev/home/kde/lib/
 3.3M 2007-03-28 00:08 /media/kdedev/home/qt-copy/lib/
 1.9M 2007-03-27 23:46 /media/kdedev/home/qt-copy/lib/
 9.1M 2007-03-27 23:59 /media/kdedev/home/qt-copy/lib/
 >and how big are their debugging symbols?
 What command can I use to find out?
 At least this seems to explain why GDB uses that much memory.
 If it is already heavily optimized, do you think caching on disk would gain anything at all?

More information about the Gdb-prs mailing list