rust/25535 Apply embedded offset to enum variant calculation
authorDoug Evans <dje@google.com>
Wed, 19 Feb 2020 20:54:59 +0000 (13:54 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 19 Feb 2020 20:59:31 +0000 (13:59 -0700)
commit084104828cba3e80b19a4bad9538d32991312d7a
tree39bf9f0d465051e66917d5d5884b3f29031263d1
parent623563f79db9c2d576303565f8ba1415c911c452
rust/25535 Apply embedded offset to enum variant calculation

Hopefully straightforward (and I didn't miss anything ...).

gdb/ChangeLog
2020-02-19  Doug Evans  <dje@google.com>

PR rust/25535
* rust-lang.c (rust_print_enum): Apply embedded_offset to
rust_enum_variant calculation.

gdb/testsuite/ChangeLog
2020-02-19  Doug Evans  <dje@google.com>

PR rust/25535
* gdb.rust/simple.exp: Add test.
* gdb.rust/simple.rs: Add test.
gdb/ChangeLog
gdb/rust-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.rust/simple.exp
gdb/testsuite/gdb.rust/simple.rs
This page took 0.038852 seconds and 4 git commands to generate.