Split out eval_op_neg
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:02 +0000 (07:28 -0700)
commit606d105ff12c443e5466581a095ad151ce14bc62
tree675ad6f7fe00ef07cbd55490ee21bc4ab045eb08
parent39f288bea9fbae9e63c123411c150f8f34ea0059
Split out eval_op_neg

This splits UNOP NEG into a new function for future use.

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

* eval.c (eval_op_neg): New function.
(evaluate_subexp_standard): Use it.
gdb/ChangeLog
gdb/eval.c