Message ID | 20240618001713.24034-4-mark@harmstone.com |
---|---|
State | New |
Headers | show |
Series | CodeView variables and type system | expand |
On 6/17/24 6:17 PM, Mark Harmstone wrote: > gcc/ > * dwarf2codeview.cc (get_type_num): Handle typedefs. Thanks. I've pushed this to the trunk. jeff
diff --git a/gcc/dwarf2codeview.cc b/gcc/dwarf2codeview.cc index eb7c1270e31..5006a176260 100644 --- a/gcc/dwarf2codeview.cc +++ b/gcc/dwarf2codeview.cc @@ -1024,6 +1024,12 @@ get_type_num (dw_die_ref type) t->num = get_type_num_base_type (type); break; + case DW_TAG_typedef: + /* FIXME - signed longs typedef'd as "HRESULT" should get their + own type (T_HRESULT) */ + t->num = get_type_num (get_AT_ref (type, DW_AT_type)); + break; + default: t->num = 0; break;