This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/commit] gdb/dwarf2read: Minimal handling of non-constant struct sizes.
- From: Pedro Alves <palves at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>, gdb-patches at sourceware dot org
- Date: Fri, 20 Nov 2015 16:00:08 +0000
- Subject: Re: [RFA/commit] gdb/dwarf2read: Minimal handling of non-constant struct sizes.
- Authentication-results: sourceware.org; auth=none
- References: <1447092144-20278-1-git-send-email-brobecker at adacore dot com>
On 11/09/2015 06:02 PM, Joel Brobecker wrote:
> gdb/ChangeLog:
>
> * dwarf2read.c (read_structure_type): Set the type's length
> to zero if it has a DW_AT_byte_size attribute which is not
> a constant.
>
> gdb/testsuite/ChangeLog:
>
> * testsuite/gdb.ada/var_rec_arr.exp: Add "ptype a1(1)" test.
>
> Tested on x86_64-linux.
LGTM.
Thanks,
Pedro Alves