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 17:02:51 +0000 (11:02 -0600)
commitfde24e1a534b7df3edd0fc167d0ace7d240021f8
treedf534bf3c97b9064ad8bfeeba288671cc723d72c
parent18a27702320ec98fa79a75acd6365ea2348f8852
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.

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