This comes from a Rust bug: https://github.com/rust-lang/rust/issues/125147
DW_AT_discr_value (section 5.7 page 123) says: The variant entry may have a DW_AT_discr_value attribute whose value represents the discriminant value selecting this variant. The value of this attribute is encoded as an LEB128 number. It is needless and confusing to specify LEB128 here, as the form will determine the representation. Additionally there doesn't seem to be any reason to limit the forms that may be used here. Tom -- Dwarf-discuss mailing list Dwarf-discuss@lists.dwarfstd.org https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss