+1, thanks for bringing this up, Tom - seems like just specing it as class
"constant" would be fine. And in fact in table 7.5 it's already specified
that way...
So might just be a matter of removing the leb128 wording from the quoted
area?

@Cary Coutant <ccout...@gmail.com> could we get an issue filed for this?

On Mon, Jan 20, 2025 at 4:32 PM Tom Tromey via Dwarf-discuss <
dwarf-discuss@lists.dwarfstd.org> wrote:

> >>>>> "John" == John DelSignore <jdelsign...@perforce.com> writes:
>
> John> Is the discriminant value always a constant? Perhaps DWARF should
> say,
> John> "The value of this attribute is of class constant." Table 2.3 defines
> John> attribute class constant as, "One, two, four, eight or sixteen bytes
> John> of uninterpreted data, or data encoded in the variable length format
> John> known as LEB128 (see Section 7.6 on page 221).".
>
> Yeah, makes sense to me.
> What I meant by:
>
> >>   Additionally there doesn't seem to be any
> >> reason to limit the forms that may be used here.
>
> ... is that any constant form seems fine.
>
> Tom
> --
> Dwarf-discuss mailing list
> Dwarf-discuss@lists.dwarfstd.org
> https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss
>
-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss

Reply via email to