Introduce rust_unop_ind_operation
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)
commit11dd3dce4427792a89a851b8ed290b3c8124f282
tree0f1ad5bed3c9bb0d431254120da71bbb62608b6c
parent6fab435953629ec50e2c367a0fbe305e4e5abf3f
Introduce rust_unop_ind_operation

This adds class rust_unop_ind_operation, which implements UNOP_IND for
Rust.  Rust requires a special case here to handle trait objects.

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

* rust-lang.c (eval_op_rust_ind): No longer static.  Add "opcode"
parameter.
(rust_evaluate_subexp): Update.
* rust-exp.h (class rust_unop_ind_operation): New.
gdb/ChangeLog
gdb/rust-exp.h
gdb/rust-lang.c