Split out eval_op_rust_structop
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:08 +0000 (07:28 -0700)
commit1fa41fc710dd282dacb67cd035af7e350b1b1057
tree9ea88c71d085dabbd5b2ce9f3b55c6da1be307d5
parent575cae2335c72a41aa54dd9dd8014c3a36db8093
Split out eval_op_rust_structop

This splits STRUCTOP_STRUCT into a new function for future use.

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

* rust-lang.c (eval_op_rust_structop): New function.
(rust_evaluate_subexp): Use it.
gdb/ChangeLog
gdb/rust-lang.c