While working on a variant part patch, I notcied that
gdb.dwarf2/variant.exp does not mark the discriminant members as
DW_AT_artificial. However, it should, as this is what the real Rust
compiler does, and how the Rust language support is supposed to work.
gdb/testsuite/ChangeLog
2020-03-11 Tom Tromey <tromey@adacore.com>
* gdb.dwarf2/variant.exp: Mark discriminants as artificial.
+2020-03-11 Tom Tromey <tromey@adacore.com>
+
+ * gdb.dwarf2/variant.exp: Mark discriminants as artificial.
+
2020-03-11 Tom de Vries <tdevries@suse.de>
* gdb.base/foll-fork.exp: Allow "Reading in symbols" messages.
discr_1_label: member {
{type :$uinteger_label}
{data_member_location 0 data1}
+ {artificial 1 DW_FORM_flag_present}
}
variant {
discr_2_label: member {
{type :$uinteger_label}
{data_member_location 0 data1}
+ {artificial 1 DW_FORM_flag_present}
}
variant {
discr_3_label: member {
{type :$int8_label}
{data_member_location 0 data1}
+ {artificial 1 DW_FORM_flag_present}
}
variant {