[PATCH] D137139: [DWARF] Fix handling of .debug_aranges with -g1

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 31 17:42:48 PDT 2022


ayermolo created this revision.
Herald added subscribers: hoy, modimo, wenlei, hiraditya.
Herald added a project: All.
ayermolo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Old behavior was to add to .debug_aranges only when we create a DIE. As the
result we could end up in situation where DW_AT_ranges have addresses that are
not in .debug_aranges. This has caused issues for LLDB: D136395 <https://reviews.llvm.org/D136395>.

Changed it to add addresses to .debug_aranges even when DIE is not created.

Test Plan:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137139

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/test/DebugInfo/X86/dwarf-aranges-g1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137139.472191.patch
Type: text/x-patch
Size: 6515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221101/12a1d163/attachment.bin>


More information about the llvm-commits mailing list