[Dwarf-Discuss] Testing debug information

Tom Tromey tromey at redhat.com
Mon Aug 29 13:17:02 PDT 2011


Richard> Does anyone know of any way to test the accuracy of debug information
Richard> automatically?

GCC has test cases which run gdb and have it print variables at various
locations; the source for the tests is annotated so that the expected
values are known.

I think Jakub also wrote a GCC Summit paper that looked at GCC debug
output see how much debuginfo was dropped at various levels of
optimization.  I don't have a link offhand.

Tom



More information about the Dwarf-Discuss mailing list