[LLVMbugs] [Bug 23908] New: Consider emitting all variables in collectVariableInfo(), even ones with no ranges
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Sun Jun 21 10:06:20 PDT 2015
    
    
  
https://llvm.org/bugs/show_bug.cgi?id=23908
            Bug ID: 23908
           Summary: Consider emitting all variables in
                    collectVariableInfo(), even ones with no ranges
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: dexonsmith at apple.com
                CC: aprantl at apple.com, dblaikie at gmail.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified
If a variable in `DbgValues` has no ranges, we currently don't emit it.  In the
review thread leading to r240244, David and Adrian suggested that we should
emit it anyway.  As an example of why, consider:
    int foo(int f) {
      if (bar()) {
        bool f = false;
        // ...
      }
      // ...
    }
If the local variable `f` is optimized out, the debugger should still "know"
about it.  Otherwise, evaluating `expression f` when stepping through the `if`
statement will refer to the parameter.
-- 
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/20150621/f73ebb3c/attachment.html>
    
    
More information about the llvm-bugs
mailing list