[Dwarf-Discuss] Producing .debug_names and questions about this lookup format
Wed Feb 2 07:49:56 GMT 2022
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 <pavel at labath.sk> added this DWARFv5
> .debug_names support in https://reviews.llvm.org/D43286
> Ah, looks like the implementation only adds IDX_compile_unit if there's
> more than one unit being produced:
If not obvious that means one needs to use -gdwarf-5 -gpubnames -flto.
Otherwise each CU/TU has its own single-CU/TU .debug_names index.
More information about the Dwarf-discuss