[PATCH] D51908: [DebugInfo] Do not generate debug info for removed labels.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 12 16:22:01 PDT 2018


dblaikie added a comment.

In https://reviews.llvm.org/D51908#1231469, @HsiangKai wrote:

> If it has no DW_AT_low_pc in label debug info, GDB seems to assume it is 0x0.
>
>   (gdb) info scope foo
>   Scope for foo:
>   Symbol done is a label at address 0x400551, length 8.
>   Symbol unreach is a label at address 0x0, length 8.
>
>
> llvm-dwarfdump results:
>
>   0x00000056:     DW_TAG_label
>                     DW_AT_abstract_origin (0x00000075 "done")


Hmm - what's the test case you're using here? Is there inlining? What about in cases without inlining?


Repository:
  rL LLVM

https://reviews.llvm.org/D51908





More information about the llvm-commits mailing list