Implement Rust field operations
authorTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:27:57 +0000 (07:27 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:28:27 +0000 (07:28 -0700)
commite4407a202d31a6873ea240b13125bf1ae8d20401
tree2e9e5c7209830771fda18563ea9a082084662e20
parent9db6b6ddbd3a384d3a80bfee3e3a5c5a40fd43d0
Implement Rust field operations

This implements the field operations STRUCTOP_STRUCT and
STRUCTOP_ANONYMOUS, for Rust.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

* rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
No longer static.
* rust-exp.h (class rust_struct_anon): New.
(class rust_structop): New.
gdb/ChangeLog
gdb/rust-exp.h
gdb/rust-lang.c