[Lldb-commits] [PATCH] D78489: [lldb/DWARF] Trust CU DW_AT_low/high_pc information when building address tables

David Blaikie via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 20 11:54:20 PDT 2020

dblaikie added a comment.

If I had to guess what this might've related to is the fact that LLVM puts a DW_AT_low_pc on the CU even if the CU uses discontiguous ranges - and in that case the low_pc has the constant value 0. So that all address values are resolved "relative" to that zero, making them absolute. There's some support in the DWARF spec for this being a right/good thing.

It's /possible/ that at some point LLVM didn't emit CU level address range info (it's redundant with aranges after all - though these days we err on the other direction of skipping aranges and just emitting CU ranges) - and just emitted the zero low_pc which might've been confusing?

  rG LLVM Github Monorepo



More information about the lldb-commits mailing list