Re: [RFA] dwarf debug format: Support DW_AT_variable_parameter attribute

Joel Brobecker
2010-05-17T17:28:15Z

> Pierre> Should zero be considered as FALSE and
> Pierre> thus the should say that this parameter is NOT a variable parameter,
> Pierre> or does the simple presence of this attribute condfirm
> Pierre> this it is a variable parameter, no matter the value of the flag.
> Pierre> I took the first approach here, but have the impression
> Pierre> that it is not always the case inside dwarf2read.c code.
>
> I think you made the correct choice.

FWIW: I also double-checked the DWARF3 standard, and it says that the
value of this attribute is a flag, and following the hyperlinks in
the PDF, one gets to:

flag
A flag is represented as a single byte of data (DW_FORM_flag).
If the flag has value zero, it indicates the absence of the
attribute. If the flag has a non-zero value, it indicates the
presence of the attribute.

--
Joel