[all-commits] [llvm/llvm-project] 3c5e3b: llvm-symbolizer: access the base address from the ...

David Blaikie via All-commits all-commits at lists.llvm.org
Thu May 25 18:03:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c5e3b70a3591869526bca72d36fc664aeff02bd
      https://github.com/llvm/llvm-project/commit/3c5e3b70a3591869526bca72d36fc664aeff02bd
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
    A llvm/test/tools/llvm-symbolizer/split-dwarf-base-addr.s

  Log Message:
  -----------
  llvm-symbolizer: access the base address from the skeleton CU, not the split unit

In Split DWARF, if the unit had a non-trivial base address (a real
low_pc, rather than one with fixed value 0) then computing addresses
needs to access that base address to add to any base address-relative
values. But the code was trying to access the base address in the split
unit, when it's actually in the skeleton unit. So delegate to the
skeleton if it's available.

Fixes #62941




More information about the All-commits mailing list