aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/pr14265.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-06-30 07:57:35 -0600
committerTom Tromey <tromey@adacore.com>2020-06-30 07:57:35 -0600
commita1520ad8fc5c5c1932d69e4685836cc1375bd850 (patch)
tree1f7e23e59779033b49c9522ec38d179353b81f3e /gold/testsuite/pr14265.c
parent5ac588997c3c2d032d5d5145d9245eb37354c23b (diff)
downloadgdb-a1520ad8fc5c5c1932d69e4685836cc1375bd850.zip
gdb-a1520ad8fc5c5c1932d69e4685836cc1375bd850.tar.gz
gdb-a1520ad8fc5c5c1932d69e4685836cc1375bd850.tar.bz2
Fix bug in quirk_rust_enum
Tom de Vries pointed out that some Rust tests were failing after the variant part rewrite. He sent an executable, which helped track down this bug. quirk_rust_enum was passing 1 to alloc_rust_variant in one case. However, a comment earlier says: /* We don't need a range entry for the discriminant, but we do need one for every other field, as there is no default variant. */ In this case, we must pass -1 for this parameter. That is what this patch implements. gdb/ChangeLog 2020-06-30 Tom Tromey <tromey@adacore.com> * dwarf2/read.c (quirk_rust_enum): Correctly call alloc_rust_variant for default-less enum.
Diffstat (limited to 'gold/testsuite/pr14265.c')
0 files changed, 0 insertions, 0 deletions