mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
Fix debugging after commit tccgen: more of scope hacks
The commit added some extra defines that where not handled in debugging code.
This commit is contained in:
4
tccdbg.c
4
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
|
||||
|
||||
Reference in New Issue
Block a user