Skip to content

Commit 9622900

Browse files
committed
Fix debugging after commit tccgen: more of scope hacks
The commit added some extra defines that where not handled in debugging code.
1 parent c96f0ca commit 9622900

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tccdbg.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,8 @@ static void tcc_get_debug_info(TCCState *s1, Sym *s, CString *result)
17811781
type = t->type.t & ~(VT_STORAGE | VT_CONSTANT | VT_VOLATILE | VT_VLA);
17821782
if ((type & VT_BTYPE) != VT_BYTE)
17831783
type &= ~VT_DEFSIGN;
1784+
if (!(type & VT_BITFIELD) && (type & VT_STRUCT_MASK) > VT_ENUM)
1785+
type &= ~VT_STRUCT_MASK;
17841786
if (type == VT_PTR || type == (VT_PTR | VT_ARRAY))
17851787
n++, t = t->type.ref;
17861788
else
@@ -1902,6 +1904,8 @@ static int tcc_get_dwarf_info(TCCState *s1, Sym *s)
19021904
type = t->type.t & ~(VT_STORAGE | VT_CONSTANT | VT_VOLATILE | VT_VLA);
19031905
if ((type & VT_BTYPE) != VT_BYTE)
19041906
type &= ~VT_DEFSIGN;
1907+
if (!(type & VT_BITFIELD) && (type & VT_STRUCT_MASK) > VT_ENUM)
1908+
type &= ~VT_STRUCT_MASK;
19051909
if (type == VT_PTR || type == (VT_PTR | VT_ARRAY))
19061910
t = t->type.ref;
19071911
else

0 commit comments

Comments
 (0)