[PATCH] D85018: [WIP][POC][DebugInfo] Support for DW_AT_start_scope for scoped variables

Sourabh Singh Tomar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 08:38:38 PDT 2020


SouraVX added a comment.

In D85018#2193489 <https://reviews.llvm.org/D85018#2193489>, @djtodoro wrote:

> According to the --show-section-sizes output, the .debug_loc has been increased?

Thanks for reviewing this! Yea that's one of the drawback(Added FIXME for the same). Since I've used `dbg.value` intrinsic for representing this variable(all reduced scope variables), this is resulting in a location list entry. We should avoid this somehow, this is because, In our local `GDB` implementation `DW_AT_start_scope` is the only thing necessary for capturing the scope info correctly.
BTW, as per @dblaikie comment, do `llvm-dwarfdump` needs to be aware of `DW_AT_start_scope` ? How does it calculate size ? Getting the raw section size(that should capture `DW_AT_start_scope` too) ? Or some other mehachnism ?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85018/new/

https://reviews.llvm.org/D85018



More information about the llvm-commits mailing list