[llvm] [llvm][DebugInfo] Encode DW_AT_object_pointer on method declarations with DW_FORM_implicit_const (PR #124790)

Paul T Robinson via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 06:12:38 PST 2025


pogo59 wrote:

> So just tried with gdb and it does seem problematic:

Yeah gdb is evaluating the value of the attribute then assumes it's a reference, which seems natural. It's not being picky about forms. Using form (or actually, class) to distinguish different meanings of an attribute is something that happens in DWARF, but the difference in meaning isn't specified for this case (yet). The committee might or might not bless this, might prefer to use a different attribute for specifying a parameter index. You'd have to send in a proposal and see what happens.

https://github.com/llvm/llvm-project/pull/124790


More information about the llvm-commits mailing list