dwarf2-frame.c and sym_private

Daniel Jacobowitz drow@mvista.com
Sun Jun 22 21:38:00 GMT 2003


On Sun, Jun 22, 2003 at 11:23:59PM +0200, Mark Kettenis wrote:
>    Date: Sun, 22 Jun 2003 12:52:35 -0400
>    From: Daniel Jacobowitz <drow@mvista.com>
> 
>    The dwarf2-frame code blithely assumes that objfile->sym_private is
>    always an FDE description.  But nothing stops the file from having
>    non-DWARF-2 debugging information, or no debugging information at
>    all... would you mind if I switched it to use a new dwarf2-specific
>    member of the objfile structure instead?
> 
> I wouldn't mind, although I'm not sure whether adding debug
> format-specific members to the objfile structure is the right
> approach.  Assuming that an object file won't contain unwind info in
> different formats, would adding a member for unwind info to the
> objfile structure be an option.

TBH, I don't think I like the assumption.  It's pretty academic - right
now dwarf2 is the one we support - but we need to be flexible in the
face of really strange input files.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list