Introduce add_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)
commita94323b60793e11ca1fc449e44b57dcff76affd8
tree7efbfb8db891446c6f7f9fca9e0e85d1ac030db9
parente51e26a090053f8f8354692fff6dce20ed2e47ba
Introduce add_operation

This adds class add_operation, which implements BINOP_ADD.

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

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