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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs