[PATCH] D50005: [DWARF] Basic support for producing DWARFv5 .debug_addr section

Victor Leschuk via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 23:17:28 PDT 2018


vleschuk added inline comments.


================
Comment at: test/DebugInfo/X86/debug_addr.ll:24
+; DWARF4: .debug_addr contents:
+; DWARF4-NEXT: 0x00000000: Addr Section params: length = 0x00000000, version = 0x0004, addr_size = 0x04, seg_size = 0x00
+; DWARF4-NEXT: Addrs: [
----------------
vleschuk wrote:
> dblaikie wrote:
> > There's no header in debug_addr sections in DWARFv4, is there - what's this then?
> > 
> > Also is this consistent with the way other section contributions are described (I don't recall text like "Addr Section params" in other output - like the way those attributes are printed out like "Compile Unit: ..." rather than "Unit Section params")?
> Changed it in dependency revision: https://reviews.llvm.org/D49676.
> There's no header in debug_addr sections in DWARFv4, is there - what's this then?

You are correct, there is no header, these values are taken from CU. In code they still are placed into Header structure and I think it is useful to dump this structure into output.


https://reviews.llvm.org/D50005





More information about the llvm-commits mailing list