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] dwarf2read.c: Avoid complaint for char array of unspecified size


>>>>> "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


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