Re: [Dwarf-Discuss] Using DWARF for C++ runtime reflection

2018-03-07 Thread Roman Popov
I think the type "T" found in the Dwarf info would have to have come from > the same compile unit that the "normally declared" type "T" came from, i.e. > your "DW_AT_name(...)" function would have to guarantee that. There's > nothing stopping the same type name from being used in different ways in

Re: [Dwarf-Discuss] Using DWARF for C++ runtime reflection

2018-03-07 Thread Jason Nyberg
Roman, For your given example: T var1; DW_AT_name(T) var2; typeid(var1) == typeid (var2) ? I think the type "T" found in the Dwarf info would have to have come from the same compile unit that the "normally declared" type "T" came from, i.e. your "DW_AT_name(...)" function would hav