This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdb script performance


On Thu, 2006-11-30 at 14:18 +0100, Jean-Marc Saffroy wrote:
> On Wed, 29 Nov 2006, Jim Blandy wrote:
> 
> > When the user changes the symbol file (or when GDB notices it has 
> > changed and automatically re-reads it), the section and symtab objects 
> > your static variables are pointing to will be freed.  If you then get a 
> > spurious cache hit, you'll hand out a pointer to garbage.  So you'll 
> > need to invalidate the cache whenever the section or symtab get freed.
> 
> Yes, that's what I meant when I said that hooks for invalidating the 
> caches are missing, but I haven't looked yet where they should be added.
> 
> BTW I don't know if the test suite would catch this; if not, a test should 
> probably be added.

A test would be a good idea, yes.
BTW, I think you have a worthwhile idea here, 
and I hope you continue to refine it.  There
are some serious performance issues in gdb.

Michael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]