llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.02k stars 11.57k forks source link

[DebugInfo] Missing debug info for C11 atomics in CodeView #98794

Open RealNeGate opened 2 months ago

RealNeGate commented 2 months ago

Whenever _Atomic variables have their debug info written, the CodeView type ID is incomplete (just 0s) which leads to debuggers being unable to read the value.

// Any use of _Atomic will cause this issue
int main() {
  _Atomic int x = 16;
  x += 1;
  return x;
}

I'm running clang 15.0.0 although the issue has existed since at least clang 11.0.0

llvmbot commented 2 months ago

@llvm/issue-subscribers-debuginfo

Author: Yasser Arguelles Snape (RealNeGate)

Whenever `_Atomic` variables have their debug info written, the CodeView type ID is incomplete (just 0s) which leads to debuggers being unable to read the value. ```c // Any use of _Atomic will cause this issue int main() { _Atomic int x = 16; x += 1; return x; } ``` I'm running clang 15.0.0 although the issue has existed since at least clang 11.0.0
llvmbot commented 2 months ago

@llvm/issue-subscribers-clang-codegen

Author: Yasser Arguelles Snape (RealNeGate)

Whenever `_Atomic` variables have their debug info written, the CodeView type ID is incomplete (just 0s) which leads to debuggers being unable to read the value. ```c // Any use of _Atomic will cause this issue int main() { _Atomic int x = 16; x += 1; return x; } ``` I'm running clang 15.0.0 although the issue has existed since at least clang 11.0.0