From 805b8a65b592789ae0b2f86d20358c9f23f815a3 Mon Sep 17 00:00:00 2001 From: mpi Date: Fri, 11 Nov 2022 22:43:09 +0000 Subject: [PATCH] Add support for storing builtins arguments into local variables. --- usr.sbin/btrace/btrace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index 791fd368c1f..e6bcd932130 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.65 2022/11/11 22:40:41 mpi Exp $ */ +/* $OpenBSD: btrace.c,v 1.66 2022/11/11 22:43:09 mpi Exp $ */ /* * Copyright (c) 2019 - 2021 Martin Pieuchot @@ -955,6 +955,8 @@ stmt_store(struct bt_stmt *bs, struct dt_evt *dtev) bv->bv_value = ba_new(builtin_nsecs(dtev), B_AT_LONG); bv->bv_type = B_VT_LONG; break; + case B_AT_BI_ARG0 ... B_AT_BI_ARG9: + /* FALLTHROUGH */ case B_AT_OP_PLUS ... B_AT_OP_LOR: bv->bv_value = ba_new(ba2long(ba, dtev), B_AT_LONG); bv->bv_type = B_VT_LONG; -- 2.20.1