[patch] Add a simple test of line numbers in the g++ debug info

Jeffrey Yasskin jyasskin@google.com
Mon Jul 19 21:29:00 GMT 2010


Jason pointed out a simpler way to do this with -dA and
scan-assembler, so here's a new patch that takes that approach. Tested
on Linux and Darwin.

gcc/testsuite/ChangeLog:
2010-07-19  Jeffrey Yasskin  <jyasskin@google.com>

        * lib/scanasm.exp (dg-function-on-line): Test that a function
is defined on the current line.
        * g++.dg/debug/dwarf2/lineno-simple1.C: New. Line number sanity test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lineno_test.patch
Type: text/x-patch
Size: 1798 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100719/c4f2767d/attachment.bin>


More information about the Gcc-patches mailing list