From 96229004c45df046521d0a8da32c259a4625372f Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Wed, 15 Oct 2025 09:01:54 +0200 Subject: [PATCH] Fix debugging after commit tccgen: more of scope hacks The commit added some extra defines that where not handled in debugging code. --- tccdbg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tccdbg.c b/tccdbg.c index 559445f1..41648d0f 100644 --- a/tccdbg.c +++ b/tccdbg.c @@ -1781,6 +1781,8 @@ static void tcc_get_debug_info(TCCState *s1, Sym *s, CString *result) type = t->type.t & ~(VT_STORAGE | VT_CONSTANT | VT_VOLATILE | VT_VLA); if ((type & VT_BTYPE) != VT_BYTE) type &= ~VT_DEFSIGN; + if (!(type & VT_BITFIELD) && (type & VT_STRUCT_MASK) > VT_ENUM) + type &= ~VT_STRUCT_MASK; if (type == VT_PTR || type == (VT_PTR | VT_ARRAY)) n++, t = t->type.ref; else @@ -1902,6 +1904,8 @@ static int tcc_get_dwarf_info(TCCState *s1, Sym *s) type = t->type.t & ~(VT_STORAGE | VT_CONSTANT | VT_VOLATILE | VT_VLA); if ((type & VT_BTYPE) != VT_BYTE) type &= ~VT_DEFSIGN; + if (!(type & VT_BITFIELD) && (type & VT_STRUCT_MASK) > VT_ENUM) + type &= ~VT_STRUCT_MASK; if (type == VT_PTR || type == (VT_PTR | VT_ARRAY)) t = t->type.ref; else