Implement some Rust 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:26 +0000 (07:28 -0700)
commit6fab435953629ec50e2c367a0fbe305e4e5abf3f
treef392b67237130fa83e6b99751075e9fe2c39c1d6
parent9dcd3e295774f93ec0cdcd687481c98e2d5e606c
Implement some Rust operations

This implements some straightforward Rust operations, using existing
template classes.

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

* rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
longer static.  Add "opcode" parameter.
(rust_evaluate_subexp): Update.
* rust-exp.h: New file.
gdb/ChangeLog
gdb/rust-exp.h [new file with mode: 0644]
gdb/rust-lang.c