This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Follow specific symbol's DW_AT_decl_file
On Sun, Jan 21, 2007 at 11:35:33PM +0100, Jan Kratochvil wrote:
> On Sun, 21 Jan 2007 17:54:51 +0100, Daniel Jacobowitz wrote:
> ...
> > /* This structure is space critical. See space comments at the top. */
> >
> > So I wrote an implementation that used an on-the-side hash table. But
> > in the end, it was a bit slower, and most symbols needed one. Even
> > with -readnow the memory increase was only 3%, so it will be less than
> > that in practice. So I went back to doing it in the symbol after all
> > :-)
>
> Due to that comment I originally valgrind(1)ed it and on my testcase the memory
> requirement increase was visible but negligible.
How did you use valgrind for this - massif? I hadn't tried that one
before. I used an old copy of glibc's memusage script; massif
is a bit more interesting.
--
Daniel Jacobowitz
CodeSourcery