Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* infinite loop processing siblings - dwarf2reader - dwarf 3 debug
@ 2009-10-25  4:24 Jason Richards
  2009-10-26 21:13 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Richards @ 2009-10-25  4:24 UTC (permalink / raw)
  To: gdb-patches

I encountered a problem where GDB gets stuck in an infinite loop processing
dwarf 3 debug information.  Turns out the producer has placed a
sibling attribute
in a die in a comp unit which references a previous die in the comp unit.
"locate_pdi_sibling" first checks for the presence of this sibling and
returns it
instead of scanning forward past the children (there are children
present in this die).

It seams to me the appropriate fix for this problem is to change
"locate_pdi_sibling"
to first return the location past the children, before returning
sibling information, which
fixes this particular problem.

Is there something I am not thinking about?


Regards-
Jason Richards


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-26 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-25  4:24 infinite loop processing siblings - dwarf2reader - dwarf 3 debug Jason Richards
2009-10-26 21:13 ` Tom Tromey
2009-10-26 21:50   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox