https://bugs.llvm.org/show_bug.cgi?id=43920
Bug ID: 43920
Summary: windbg can't show local on-stack parameter
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
I have a simple program:
C:\src\hack\pdb>type file.cc
int f(int i);
int main() {
return f(42);
}
C:\src\hack\pdb>type subdir\file2.cc
int f(int i) { return i; }
I build it like so:
clang-cl /Z7 -c file.cc
clang-cl /Z7 -c subdir\file2.cc
lld-link /debug /pdbaltpath:%_PDB% file.obj file2.obj
And debug like so:
C:\src\hack\pdb>windbg -c "bp file!f; g; dv" file.exe
I get
Breakpoint 0 hit
i = <value unavailable>
If I use `cl` instead of `clang-cl`, it shows up fine.
Note that this isn't an optimized build.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs