This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: symtab/2254: Symbol loading in GDB too slow
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 15 Apr 2007 22:18:02 -0000
- Subject: Re: symtab/2254: Symbol loading in GDB too slow
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR symtab/2254; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: Thomas.McGuire@gmx.net
Cc: gdb-gnats@sources.redhat.com
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, Thomas.McGuire@gmx.net 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
CodeSourcery