From 44cd804e853cba36880d0485ce420618c9f0feab Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 21 Feb 2024 13:18:33 +0000 Subject: [PATCH] Handle DW_FORM_udata and DW_FORM_ref_udata in dav2val(). At least with clang enums use DW_FORM_udata and without this all enum values would be reported as -1. OK mpi@ --- usr.bin/ctfconv/parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/ctfconv/parse.c b/usr.bin/ctfconv/parse.c index d74f95005a1..6a2a4a4b62d 100644 --- a/usr.bin/ctfconv/parse.c +++ b/usr.bin/ctfconv/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.15 2022/12/26 18:43:49 jmc Exp $ */ +/* $OpenBSD: parse.c,v 1.16 2024/02/21 13:18:33 claudio Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot @@ -1345,6 +1345,8 @@ dav2val(struct dwaval *dav, size_t psz) case DW_FORM_sdata: case DW_FORM_data8: case DW_FORM_ref8: + case DW_FORM_udata: + case DW_FORM_ref_udata: val = dav->dav_u64; break; case DW_FORM_strp: -- 2.20.1