Introduce sub_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:19 +0000 (07:28 -0700)
commit5133d78b7bf19f350865c9515839865503cacfa9
tree4cf6cef44fb5d2c575f3862e1852bd438f18104d
parenta94323b60793e11ca1fc449e44b57dcff76affd8
Introduce sub_operation

This adds class sub_operation, which implements BINOP_SUB.

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

* expop.h (class sub_operation): New.
* eval.c (eval_op_sub): No longer static.  Remove "op" parameter.
(evaluate_subexp_standard): Update.
gdb/ChangeLog
gdb/eval.c
gdb/expop.h