OSDN Git Service

Make sure all types in gdb.ada/homonym testcase are used...
authorbrobecke <brobecke>
Thu, 1 Dec 2011 23:16:44 +0000 (23:16 +0000)
committerbrobecke <brobecke>
Thu, 1 Dec 2011 23:16:44 +0000 (23:16 +0000)
commitdb65499312d264a1da72e47f2fcc0bd159af81dc
tree9c73990af03c462ffdd58f72377228f84b324ad6
parent0ee746dd3067e0d387a3b286eab54c7d6e937fb6
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]