symtab/2254: Symbol loading in GDB too slow

Daniel Jacobowitz
Sun Apr 15 22:18:00 GMT 2007

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

From: Daniel Jacobowitz <>
Subject: Re: symtab/2254: Symbol loading in GDB too slow
Date: Sun, 15 Apr 2007 18:15:09 -0400

 On Sun, Apr 15, 2007 at 07:41:57PM -0000, wrote:
 > Attaching GDB to such a process takes about 5 minutes on my PC, mainly due to symbol loading. 
 > Although I only have a 1.8GHZ CPU with 384MB RAM, this should be faster.
 > Partly, the slowness is caused by a lot of swapping due to my low memory. I think GDB should use much less memory for the symbol tables if that is possible.
 > Additionally, the symbol loading is too slow. Either it could be fixed by optimizing the code or by introducing a on-disk symbol cache.
 Symbol table loading is already heavily optimized.  GDB can't give you
 miracles; how big are the libraries that you're trying to debug, and
 how big are their debugging symbols?
 We're always interested in clever ways to make it go faster.
 Daniel Jacobowitz

More information about the Gdb-prs mailing list