This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix display of array of unspecified length inside structures
- From: Pedro Alves <pedro at codesourcery dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 18 Feb 2011 17:40:48 +0000
- Subject: Re: [RFA] Fix display of array of unspecified length inside structures
- References: <00ac01cbcf5c$31f5bc00$95e13400$@muller@ics-cnrs.unistra.fr> <201102181524.45999.pedro@codesourcery.com> <000f01cbcf90$4b469bf0$e1d3d3d0$@muller@ics-cnrs.unistra.fr>
On Friday 18 February 2011 17:21:34, Pierre Muller wrote:
> > That just confirms what I said. :-) The flexible array
> > member construst is C99 only, so it's likely that other
> > compilers choke on it by default.
>
> But this means that other compilers
> will at least accept this flexible array construct if
> they conform to ISO C99.
Fine.
> malloc should be OK,
> does it require a header?
stdlib.h.
--
Pedro Alves