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

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to