[Ada] Pointers to unconstrained arrays inside variant record.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 24 Oct 2012 18:06:10 +0000 (18:06 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 24 Oct 2012 18:06:10 +0000 (18:06 +0000)
commit5ded533171a924509f15f951c50d54d5c56389ca
treecd3981729249a3a1f14942f8ce97a5b9a0333c1b
parentd8d842913db1aef24832f8a93d42fda6c6fc58dd
[Ada] Pointers to unconstrained arrays inside variant record.

gdb/ChangeLog:

        * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
        strip typedef layer when computing the fixed type's field type,
        only when computing its size.

gdb/testsuite/ChangeLog:

        * gdb.ada/unc_arr_ptr_in_var_rec: New testcase.
gdb/ChangeLog
gdb/ada-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec.exp [new file with mode: 0644]
gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec/foo.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec/pck.ads [new file with mode: 0644]