From 9a9e394b05a841bdd9163f280d7ef19cc65634d6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 29 May 2019 10:21:52 -0600 Subject: Fix gdb.ada/vla.exp PR ada/24539 concerns a test failure in gdb.ada/vla.exp. The problem here is that different versions of Gnat emit the structure's fields in different orders -- with the order currently failing actually being the correct one. Joel pointed out that this can be fixed by simply adding the No_Component_Reordering pragma to the type in question, which is what this patch does. I've reported a Gnat compiler bug internally in hopes of getting the underlying problem fixed. gdb/testsuite/ChangeLog 2019-06-14 Tom Tromey PR ada/24539: * gdb.ada/vla.exp: Update tests. * gdb.ada/vla/vla.adb (Record_Type): Use No_Component_Reordering pragma. --- gdb/testsuite/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/testsuite/ChangeLog') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 37e327d..bd48c92 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2019-06-14 Tom Tromey + + PR ada/24539: + * gdb.ada/vla.exp: Update tests. + * gdb.ada/vla/vla.adb (Record_Type): Use No_Component_Reordering + pragma. + 2019-06-13 Pedro Alves * gdb.base/settings.exp (test-integer): Test junk after -- cgit v1.1