[RFC] Dont skip DW_TAG_member in load_partial_dies()
Daniel Jacobowitz
drow@false.org
Wed Feb 16 03:24:00 GMT 2005
On Tue, Feb 15, 2005 at 03:35:03PM -0800, Joel Brobecker wrote:
> > I'm copying this to Elena, since she is the maintainer of the DWARF-2
> > reader. Your patch looks right to me. In fact, I've been working on
> > running the GDB testsuite using ARM's compiler today, and I have a
> > patch that looks exactly like this in my working directory :-)
>
> We also found the same sort of problem for Ada, and ended up doing
> the same thing. We haven't had time to submit this change yet, as
> there were a few things we wanted to thing about before doing so.
>
> Just FYI: Here is the change we've made so far in gdb-6.3.
>
> if (abbrev->tag == DW_TAG_subprogram
> || abbrev->tag == DW_TAG_variable
> || abbrev->tag == DW_TAG_namespace
> + || abbrev->tag == DW_TAG_enumeration_type
> + || abbrev->tag == DW_TAG_structure_type
That's a very different problem - you're at the other interesting if in
this function. Please show me an example of debug information which
requires this - and see the comment above which talks about why most of
these checks are only for buggy compilers...
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gdb-patches
mailing list