[Lldb-commits] [PATCH] D92643: [lldb] Lookup static const members in FindGlobalVariables

Andy Yankovsky via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 4 10:30:56 PST 2020


werat added a comment.

In D92643#2434050 <https://reviews.llvm.org/D92643#2434050>, @jingham wrote:

> I couldn't tell what you meant by this...  I would expect that a Type would tell you that static members exist, and their type, etc.  But I wouldn't expect a Type to be able to get a value for a static member.  After all, the type comes from some Module, which could be shared amongst a bunch of processes in lldb.  The actual member value could be different in each of these processes, but since the Type has no process, it has no way to get the correct value.

Yeah, of course you can't get a value for a static member just from the type (although, if it's an `inline static` then it could be possible?). But something like `VariableList EnumerateStaticMembers(Target, Type)` would be nice.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92643/new/

https://reviews.llvm.org/D92643



More information about the lldb-commits mailing list