From cb735a7a9d5134c217ca3cce0007d70da8fd5a6b Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 21 Feb 2024 13:18:34 +0000 Subject: 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(-) (limited to 'usr.bin/ctfconv') 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: -- cgit v1.2.3