[RFA] Handle variable-sized fields in the interior of structure type
Joel Brobecker
brobecker@adacore.com
Fri Aug 1 14:46:00 GMT 2014
> gdb/ChangeLog:
>
> * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
> if detecting a variable-sized field that is not the last field.
> Fix struct type length computation.
>
> gdb/testsuite/ChangeLog:
>
> * gdb.base/vla-datatypes.c (vla_factory): Add new variable
> inner_vla_struct_object_size.
> * gdb.base/vla-datatypes.exp: Adjust last test, and mark it
> as xfail.
I have pushed this patch. There was a tiny merge conflict to resolve,
so attached is the patch I ended up pushing. Re-tested on x86_64-linux.
--
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Handle-variable-sized-fields-in-the-interior-of-stru.patch
Type: text/x-diff
Size: 7129 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140801/da63f2fb/attachment.bin>
More information about the Gdb-patches
mailing list