[llvm-dev] How to handle DWARF Missing due to function elimination?

Jeremy Morse via llvm-dev
2021-05-27T11:47:31Z

Hi Chuanqi,

On Thu, May 27, 2021 at 12:11 PM chuanqi.xcq
<yedeng.yd at linux.alibaba.com> wrote:
> The gdb would blame when it finds 0x0123456 doesn't refer to any
functions in dwarf format.

This is really interesting -- if you run "llvm-dwarfdump -verify" on
the output file, does it too complain about an invalid DIE reference?

There's a known issue with very complicated LTO builds that causes
something similar:

  https://bugs.llvm.org/show_bug.cgi?id=48790

Reverting 93592b726c7 locally will tell you whether it's that or not.

--
Thanks,
Jeremy