Implement the "&&" and "||" operators
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:28 +0000 (07:28 -0700)
commit5019124b1ddc3839bd8ccba08819b11c0151e8a9
treee83820e9ee3c77bdff1892dfbc7b2664c26d0df6
parent2bc9b40ce16a109a22320589d2cfb9fced5fb769
Implement the "&&" and "||" operators

This implements the "&&" and "||" operators.

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

* expop.h (class logical_and_operation)
(class logical_or_operation): New.
* eval.c (logical_and_operation::evaluate)
(logical_or_operation::evaluate): New methods.
* ax-gdb.c (logical_and_operation::do_generate_ax)
(logical_or_operation::do_generate_ax): New methods.
gdb/ChangeLog
gdb/ax-gdb.c
gdb/eval.c
gdb/expop.h