This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb script performance
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.
--
saffroy@gmail.com