This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: sizeof wrong for struct with final zero-length array


> I order to support this feature, gcc needs to output debug symbol
> table entries that reflect the decl, rather than the type.  Debug
> information is beyond the scope of the C standard, and the STABS
> documentation at least doesn't address this case, so it would seem
> there is some freedom to implement the treatment of FAMs I describe.
> 
> Comments?

I think it would be definitely helpful to have such kind of
information in the debugger. However, it may be that you have to
create a new type in the debugging information for each variable, and
then have only one variable of the type.

Regards,
Martin


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