This is the mail archive of the gdb@sources.redhat.com 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: dwarf2-frame.c and sym_private


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


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