Terminally slow (75 seconds) on some steps

Daniel Berlin dberlin@dberlin.org
Mon Aug 18 16:15:00 GMT 2003


On Monday, August 18, 2003, at 11:04 AM, Andrew Cagney wrote:

>> First of all, we should be using mmap to access symbol files, at least
>>> when there are no relocations.
>> Been there, done that, was told to do it in BFD.
>
> If there are I/O performances gains to be had, GDB should share them 
> with binutils.
Except, you can't.
Even if we were to use the bfd window stuff, binutils wouldn't be using 
it.
So i'm not sure what you mean.
Whether we directly call mmap, or attempt to use the window stuff 
(which is harder to use for us, and not built to do what we want), 
we're still going to be not sharing it with binutils.
IMHO, it makes more sense to add the 3 lines of code necessary to use 
mmap (we need not change anything else, since bfd reads on the mmap'd 
memory will be turned into memory reads as approriate), than to change 
more to use the window stuff.
> Did you look at bfdwin.c (although, in light of recent patches to 
> modify bfd so that it can create things from target memory, the 
> interface may be heading for review).
>
The mmap usage in it not enabled unless you specifically configure it 
on, last i looked.
In fact, last i looked, the window stuff wasn't even turned on unless 
you used --with-mmap.
This may have changed though.
> Andrew
>
>



More information about the Gdb mailing list