Split out eval_op_rust_struct_anon
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)
commit575cae2335c72a41aa54dd9dd8014c3a36db8093
tree2b2245df2c4cc3ea7b1b4dc0abeb711669d0318b
parent051042333d9d7e2622f3825d5cf532676787dd1c
Split out eval_op_rust_struct_anon

This splits STRUCTOP_ANONYMOUS into a new function for future use.

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

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