[DynInst_API:] [dyninst/dyninst] 3fc456: Fix line information parsing for CUs with no aranges


Date: Fri, 13 Oct 2023 13:02:12 -0700
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 3fc456: Fix line information parsing for CUs with no aranges
  Branch: refs/heads/thaines/line_maps_no_ranges
  Home:   https://github.com/dyninst/dyninst
  Commit: 3fc4560a11f80049e7940bb1ee5e376f24b64561
      https://github.com/dyninst/dyninst/commit/3fc4560a11f80049e7940bb1ee5e376f24b64561
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2023-10-13 (Fri, 13 Oct 2023)

  Changed paths:
    M dwarf/h/dwarf_cu_info.h
    M symtabAPI/src/Object-elf.C

  Log Message:
  -----------
  Fix line information parsing for CUs with no aranges

As of libdw 0.189, `dwarf_addrdie` assumes the presence of
.debug_aranges. For compilers that do not emit one, or emit an invalid
one (e.g., gtpin binaries), then manually search through all of the CUs
to find a match.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 3fc456: Fix line information parsing for CUs with no aranges, Tim Haines <=