Split out eval_op_rust_complement
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:07 +0000 (07:28 -0700)
commit6fa9831f89a3c788f4ea1ab6d1e2543dabfc0f8e
treefa687113914d5070dd7a5b8c37a2cc3bb64c7dc6
parentd123f9e4a3936aeff524322e052ce1fd9ff1f19f
Split out eval_op_rust_complement

This splits UNOP_COMPLEMENT into a new function for future use.

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

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