[llvm-bugs] [Bug 43920] New: windbg can't show local on-stack parameter

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 6 07:41:19 PST 2019


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: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191106/836e5b6b/attachment.html>


More information about the llvm-bugs mailing list