Re: [Dwarf-Discuss] EXTERNAL: Corner-cases with bitfields

2022-05-10 Thread Pedro Alves via Dwarf-Discuss
On 2022-05-09 22:41, Robinson, Paul wrote: >> Pedro Alves wrote: >> On 2022-05-09 16:48, Ron Brender via Dwarf-Discuss wrote: >>> So my suggestion is to file a bug report with CLANG, requesting they >> correct their DWARF output to reflect all details needed >>> by your language. >> >> An issue her

[Dwarf-Discuss] Unnamed zero sized bit-fields (Re: Corner-cases with bitfields)

2022-05-10 Thread Pedro Alves via Dwarf-Discuss
On 2022-05-06 18:11, Lancelot SIX via Dwarf-Discuss wrote: > 2 - Unnamed zero sized bitfield > > Another case we met is related to unnamed fields with a size of 0 bits. > Such field is defined in the c++ standard as (in 9.6 Bit-Fields): > > > As a special case, an unnamed bit-field with a width

Re: [Dwarf-Discuss] EXTERNAL: Corner-cases with bitfields

2022-05-10 Thread Michael Eager via Dwarf-Discuss
On 5/10/22 02:15, Pedro Alves via Dwarf-Discuss wrote: But still, at the language level, the types ARE different. And DWARF is also about language source to machine code mapping. C/C++ don't let you take the address of a bitfield, for example, so it's possible type expressions in the debugge

Re: [Dwarf-Discuss] Unnamed zero sized bit-fields (Re: Corner-cases with bitfields)

2022-05-10 Thread Michael Eager via Dwarf-Discuss
On 5/10/22 04:10, Pedro Alves via Dwarf-Discuss wrote: On 2022-05-06 18:11, Lancelot SIX via Dwarf-Discuss wrote: 2 - Unnamed zero sized bitfield Another case we met is related to unnamed fields with a size of 0 bits. Such field is defined in the c++ standard as (in 9.6 Bit-Fields): > As a