Adapt gdb.ada/variant_record_packed_array.exp to accept reordered components
authorJoel Brobecker <brobecker@adacore.com>
Mon, 11 Dec 2017 05:55:36 +0000 (00:55 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 11 Dec 2017 05:58:30 +0000 (00:58 -0500)
commitc5f9cfc894373abd00ee56c6723ee0ba95a84f95
tree3e7625f9575f05b51d889b8654e4475c6a23328b
parent08f49010a10b1fc98f65aada96e788c87c56ad85
Adapt gdb.ada/variant_record_packed_array.exp to accept reordered components

Recent versions of GNAT are capable of reordering record components
to make their access for efficient. This patch adapts this test to
accept both cases (reordered or not).

gdb/testsuite/ChangeLog:

        * gdb.ada/variant_record_packed_array.exp: Adapt test to accept
        output with components being reordered.

Tested on x86_64-linux.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/variant_record_packed_array.exp