[Dwarf-Discuss] Testing debug information

Tom Tromey tromey@redhat.com
Mon Aug 29 20:17:02 GMT 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