Make sure all types in gdb.ada/homonym testcase are used...
authorJoel Brobecker <brobecker@gnat.com>
Thu, 1 Dec 2011 23:16:44 +0000 (23:16 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 1 Dec 2011 23:16:44 +0000 (23:16 +0000)
commitac1349b75a77e0fc0e8b76a69bfcf246936e721c
tree3e388879855ef205b46115ba6111266e936b8509
parentea135989a111fbd9021e5b465a865412c3b2b1a9
Make sure all types in gdb.ada/homonym testcase are used...

Otherwise, the compiler does not generate any debug info for them.
This fixes 3 FAILs:

    FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_1
    FAIL: gdb.ada/homonym.exp: ptype int_type at BREAK_1
    FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_2

gdb/testsuite/ChangeLog:

        * gdb.ada/homonym/pck.ads, gdb.ada/homonym/pck.adb: New files.
        * gdb.ada/homonym/homonym.adb: For use of all types defined
        locally inside both Get_Value subprograms.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/homonym/homonym.adb
gdb/testsuite/gdb.ada/homonym/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/homonym/pck.ads [new file with mode: 0644]