Mark discriminants as artificial in gdb.dwarf2/variant.exp
authorTom Tromey <tromey@adacore.com>
Wed, 11 Mar 2020 13:59:14 +0000 (07:59 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 11 Mar 2020 13:59:37 +0000 (07:59 -0600)
commit976862ed563047be58effc4b02fe75ed064f77b7
tree2a58c83c9a6716e1dfa2b90d37f619c9827848df
parent7462c383f9849aab40f156854a72f0a93305124a
Mark discriminants as artificial in gdb.dwarf2/variant.exp

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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/variant.exp