[PATCH] D132059: [BOLT][DWARF] Handle zero size DW_TAG_inlined_subroutine

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 11:42:39 PDT 2022


ayermolo created this revision.
Herald added subscribers: hoy, modimo, wenlei.
Herald added a reviewer: rafauler.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
ayermolo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, yota9, sstefan1.
Herald added a project: LLVM.

We were resetting DW_AT_low_pc to zero when DW_AT_high_pc was zero, or
DW_AT_low_pc == DW_AT_high_pc. This resulted in LLDB to print error "adding
range [0x0-0x0) which has a base that is less than the function's low PC".

Changed it so that when this case arises we set DW_AT_low_pc to the start
address.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132059

Files:
  bolt/include/bolt/Rewrite/DWARFRewriter.h
  bolt/lib/Rewrite/DWARFRewriter.cpp
  bolt/test/X86/dwarf4-size-0-inlined_subroutine.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132059.453382.patch
Type: text/x-patch
Size: 23978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220817/2a01889e/attachment.bin>


More information about the llvm-commits mailing list