[Lldb-commits] [PATCH] D77698: [DWARF] Assign the correct scope to constant variables
Davide Italiano via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 7 18:00:20 PDT 2020
davide created this revision.
davide added reviewers: jingham, labath.
Herald added subscribers: arphaman, aprantl.
davide added a comment.
davide added a reviewer: friss.
See also https://bugs.llvm.org/show_bug.cgi?id=45471
SymbolFileDWARF::ParseVariableDIE consider all constant variables as "static".
This is incorrect, and causes `frame var` to fail when printing them.
volatile int a;
int b = 3;
const_value variables are more common at `-O1/-O2/..`, so this wasn't noticed by many.
I also need to craft a testcase. Ideas on how to do this are appreciated
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4342 bytes
Desc: not available
More information about the lldb-commits