btrace: add support for hex and octal values.
authordv <dv@openbsd.org>
Wed, 20 Dec 2023 14:00:17 +0000 (14:00 +0000)
committerdv <dv@openbsd.org>
Wed, 20 Dec 2023 14:00:17 +0000 (14:00 +0000)
commitbf2cda3585b27b96d0cc3bdd696bed0d3eb5b821
treeb7d4f7753f85a0e59c3c33b901d4301bd66dd06f
parent3e06329b951c031a605474e29f1324d0d2dc846d
btrace: add support for hex and octal values.

Changes number tokenizing and parsing to support hex & octal values.
Does not address other lexer issues (e.g. $0x1) to close gaps with
bpftrace.

OK claudio@
regress/usr.sbin/btrace/arithm.bt
regress/usr.sbin/btrace/arithm.ok
usr.sbin/btrace/bt_parse.y