This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/commit] gdb/dwarf2read: Minimal handling of non-constant struct sizes.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]