summaryrefslogtreecommitdiff
path: root/usr.bin/ctfconv
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2024-02-27 06:58:20 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2024-02-27 06:58:20 +0000
commitaee4e4f12dac8aa68aa7342915d619321500a5dc (patch)
tree9cfedec067e710a24cf256d652ac7864772eacd6 /usr.bin/ctfconv
parentff580cb71638758c47216651ae226d23c71aefd2 (diff)
Recent ctfconv refactoring broke support for long double types, as
discovered by the regress tests.
Diffstat (limited to 'usr.bin/ctfconv')
-rw-r--r--usr.bin/ctfconv/generate.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ctfconv/generate.c b/usr.bin/ctfconv/generate.c
index fdbaa0ea33f..3306edcb624 100644
--- a/usr.bin/ctfconv/generate.c
+++ b/usr.bin/ctfconv/generate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: generate.c,v 1.6 2024/02/22 13:15:17 claudio Exp $ */
+/* $OpenBSD: generate.c,v 1.7 2024/02/27 06:58:19 anton Exp $ */
/*
* Copyright (c) 2017 Martin Pieuchot
@@ -197,7 +197,7 @@ imcs_add_type(struct imcs *imcs, struct itype *it)
ctsz = sizeof(struct ctf_stype);
} else if (size <= CTF_MAX_SIZE) {
if (kind == CTF_K_INTEGER || kind == CTF_K_FLOAT) {
- assert(size <= 64);
+ assert(size <= 128);
if (size == 0)
ctt.ctt_size = 0;
else if (size <= 8)
@@ -206,8 +206,10 @@ imcs_add_type(struct imcs *imcs, struct itype *it)
ctt.ctt_size = 2;
else if (size <= 32)
ctt.ctt_size = 4;
- else
+ else if (size <= 64)
ctt.ctt_size = 8;
+ else
+ ctt.ctt_size = 16;
} else
ctt.ctt_size = size;
ctsz = sizeof(struct ctf_stype);