This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] dwarf2read.c: Avoid complaint for char array of unspecified size
- From: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: <gdb-patches at sourceware dot org>
- Date: Fri, 21 May 2010 15:42:58 -0600
- Subject: Re: [RFA] dwarf2read.c: Avoid complaint for char array of unspecified size
- References: <38685.0063725889$1274473713@news.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> This code:
Pierre> external char gdbint [];
Pierre> generated a DW_TAG_subrange_type with zero attributes
Pierre> to describe the `[]' part.
Pierre> (compiled with gcc (Debian 4.3.2-1.1) 4.3.2.).
I think this kind of DIE is explicitly ok, according to DWARF.
See the paragraph toward the end of section 5.11 that describes what to
do when a DW_TAG_subrange_type has no basis type.
So, I think this complaint is incorrect. It would be better to simply
remove it.
Tom