summaryrefslogtreecommitdiff
path: root/usr.bin/ctfconv
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-02-21 13:18:34 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-02-21 13:18:34 +0000
commitcb735a7a9d5134c217ca3cce0007d70da8fd5a6b (patch)
tree054db2b2b623730c9c9218e5a9b28071b41866f7 /usr.bin/ctfconv
parent628a616686f030b16b8df38c1c85bcc6ec6f0e27 (diff)
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@
Diffstat (limited to 'usr.bin/ctfconv')
-rw-r--r--usr.bin/ctfconv/parse.c4
1 files changed, 3 insertions, 1 deletions
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: