[Lldb-commits] [PATCH] D156774: [lldb][DWARFASTParserClang] Resolve nested types when parsing structures

Vlad Serebrennikov via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Aug 20 03:56:38 PDT 2023


Endill added a comment.

In D156774#4601736 <https://reviews.llvm.org/D156774#4601736>, @Michael137 wrote:

> What were your lldb commands when you tested this?

`script import lldb; frame = lldb.thread.GetFrameAtIndex(0); print(frame.variables[0].type.GetNumberOfMemberEnums())`

> LLDB currently completes types lazily when it thinks it can. Does your new API still fail if you run `expr p` prior? (the idea is that that would trigger completion of the type and parse dwarf). If we dont ever call `GetFullCompilerType` on your type LLDB will never try to pull in the definition

No amount of tinkering with `expr` makes `script print(frame.variables[0].type.GetNumberOfMemberEnums())` output a non-zero value.
I tested this with the changes I uploaded here half an hour ago.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156774



More information about the lldb-commits mailing list