[all-commits] [llvm/llvm-project] 274afa: lldb: Add support for DW_AT_ranges on DW_TAG_subpr...

David Blaikie via All-commits all-commits at lists.llvm.org
Thu Jan 7 14:32:33 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 274afac9a17f43e5396a0d6c7a0741702596a7bd
      https://github.com/llvm/llvm-project/commit/274afac9a17f43e5396a0d6c7a0741702596a7bd
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h
    A lldb/test/Shell/SymbolFile/DWARF/Inputs/subprogram_ranges.s
    A lldb/test/Shell/SymbolFile/DWARF/subprogram_ranges.test

  Log Message:
  -----------
  lldb: Add support for DW_AT_ranges on DW_TAG_subprograms

gcc already produces debug info with this form
-freorder-block-and-partition
clang produces this sort of thing with -fbasic-block-sections and with a
coming-soon tweak to use ranges in DWARFv5 where they can allow greater
reuse of debug_addr than the low/high_pc forms.

This fixes the case of breaking on a function name, but leaves broken
printing a variable - a follow-up commit will add that and improve the
test case to match.

Differential Revision: https://reviews.llvm.org/D94063




More information about the All-commits mailing list