[llvm] [llvm][DebugInfo] Encode DW_AT_object_pointer on method declarations with DW_FORM_implicit_const (PR #124790)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 04:31:19 PST 2025
Michael137 wrote:
So just tried with gdb and it does seem problematic:
```
(gdb) b method
Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x61 [in module /home/michaelbuch/Git/patch-lldb.out]
(gdb) b method2
Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x71 [in module /home/michaelbuch/Git/patch-lldb.out]
```
Where the source is:
```
struct Foo {
int x = 5;
void method(this Foo const volatile && self) {}
void method2(int) {}
};
int main() {
Foo{}.method();
Foo{}.method2(5);
}
```
https://github.com/llvm/llvm-project/pull/124790
More information about the llvm-commits
mailing list