protection from dangling pointers in dwarf info when .so's go away

Daniel Jacobowitz drow@false.org
Thu Dec 13 13:19:00 GMT 2007


On Thu, Dec 13, 2007 at 12:16:36AM -0800, Doug Evans wrote:
> What happens if TYPE_OBJFILE (type) != TYPE_OBJFILE
> (TYPE_VPTR_BASETYPE (baseclass)) ?

Precisely what you saw, but how does this happen?  The baseclass links
should normally point through to other types in the same objfile.

I'm guessing that there was inadequate debug info for a base class,
leading GDB to do name resolution into a shared library with better
debug info (probably because it defined the class's key method)?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list