Make Rust error message mention the field name
authorTom Tromey <tom@tromey.com>
Thu, 13 Sep 2018 16:56:34 +0000 (10:56 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 13 Sep 2018 16:57:40 +0000 (10:57 -0600)
commit4a3fe98f885a2d1db804584e7ea265ab3ccef4d7
tree26d5b44bfa4d40c4358b4b78b65f57e5552ae2ea
parent098b2108a2b61531c0bc8ea16854f773083a95d7
Make Rust error message mention the field name

I noticed a spot in rust-lang.c where the placeholder "foo" was used
instead of the actual field name.  This patch fixes the bug.

gdb/ChangeLog
2018-09-13  Tom Tromey  <tom@tromey.com>

PR rust/23650:
* rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".

gdb/testsuite/ChangeLog
2018-09-13  Tom Tromey  <tom@tromey.com>

PR rust/23650:
* gdb.rust/simple.exp: Add test for enum field access error.
gdb/ChangeLog
gdb/rust-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.rust/simple.exp
This page took 0.028941 seconds and 4 git commands to generate.