Re: [Dwarf-Discuss] Producing .debug_names and questions about this lookup format

2022-02-01 Thread Jan Kratochvil via Dwarf-Discuss
On Wed, 02 Feb 2022 01:08:27 +0100, David Blaikie via Dwarf-Discuss wrote: > Clang does (if you pass -gpubnames in addition to -gdwarf-5). Looks like it > only uses DW_FORM_ref4 as though they were absolute (not unit-relative) > offsets. Looks like @Pavel Labath added this DWARFv5 > .debug_names s

Re: [Dwarf-Discuss] How to map [[no_unique_address]] into DWARF

2021-06-07 Thread Jan Kratochvil via Dwarf-Discuss
On Mon, 07 Jun 2021 20:27:39 +0200, David Blaikie via Dwarf-Discuss wrote: > Ah, in the sense that you want to be able to derive new types based on > the DWARF? > Fair enough. The real reason is that when using the derived class C LLDB+LLVM layout engine will assert because FieldOffsets from DWARF

Re: [Dwarf-Discuss] How to map [[no_unique_address]] into DWARF

2021-06-07 Thread Jan Kratochvil via Dwarf-Discuss
On Mon, 07 Jun 2021 20:11:16 +0200, David Blaikie via Dwarf-Discuss wrote: > On Mon, Jun 7, 2021 at 10:58 AM Jan Kratochvil via Dwarf-Discuss > wrote: > > > > clang-12 will create the same DWARF for class B with [[no_unique_address]] > > either present or not. Despite tha

[Dwarf-Discuss] How to map [[no_unique_address]] into DWARF

2021-06-07 Thread Jan Kratochvil via Dwarf-Discuss
Hi, clang-12 will create the same DWARF for class B with [[no_unique_address]] either present or not. Despite that class C derived from B has different layout depending on from which class B it gets derived: -- struct A {