[PATCH] gdb script performance
Daniel Jacobowitz
drow@false.org
Tue Dec 5 21:02:00 GMT 2006
On Thu, Nov 30, 2006 at 02:56:54PM +0100, Jean-Marc Saffroy wrote:
> For the PC cache, I guess that just about any address can be passed, so I
> doubt there is much room for improvement (except maybe a cache with more
> than one entry, should it be useful in some cases, but now it's probably
> unneeded).
We shouldn't need to cache at all. I think the right representation
would allow us to look up a single PC and find the best psymtab based
on that PC without having to loop over psymtabs; this requires a pretty
big change to the way we store things, since unfortunately I don't
think we can assume the address ranges of psymtabs are even remotely
sane (multiple psymtabs may overlap, for instance, and it's past time
we started recording DW_AT_ranges discontiguous range information).
Not sure what a good data structure for that would look like.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list