[PATCH] gdb script performance
Jean-Marc Saffroy
saffroy@gmail.com
Thu Nov 30 13:19:00 GMT 2006
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
More information about the Gdb-patches
mailing list