Implement else branching logic including 'else if'.
authormpi <mpi@openbsd.org>
Sat, 30 Mar 2024 07:41:45 +0000 (07:41 +0000)
committermpi <mpi@openbsd.org>
Sat, 30 Mar 2024 07:41:45 +0000 (07:41 +0000)
commitca41b7499da326730839ef3d139e7af7af229460
treec9120434420416bcde360eb14e470afaf89a659c
parent36cf69b33bdf594bfbeeaf101a0c2e8868eefdc0
Implement else branching logic including 'else if'.

Statement lists for if & else conditions are now wrapped in a new
'struct bt_cond'.  Handling B_AC_TEST statements moved to stmt_eval()
to handle nested conditional statements.

From Christian Ludwig christian_ludwig at genua.de
regress/usr.sbin/btrace/if.bt
regress/usr.sbin/btrace/if.ok
usr.sbin/btrace/bt_parse.y
usr.sbin/btrace/bt_parser.h
usr.sbin/btrace/btrace.c