https://bugs.llvm.org/show_bug.cgi?id=45471
Bug ID: 45471
Summary: SymbolFileDWARF::ParseVariableDIE consider all
constant variables as "static"
Product: lldb
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: lldb-...@lists.llvm.org
Reporter: ditali...@apple.com
CC: jdevliegh...@apple.com, llvm-bugs@lists.llvm.org
SymbolFileDWARF::ParseVariableDIE has the following code:
if (location_is_const_value_data)
scope = eValueTypeVariableStatic;
else {
scope = eValueTypeVariableLocal;
So every variable that just has a constant value, and isn’t in a location, is
treated as a file static. That means, for instance, if you build this:
volatile int a;
main() {
{
int b = 3;
a;
}
}
Break on line 5 and run to it, you get:
(lldb) frame var
(lldb)
It is a local variable, however, so we should print it.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs