I’m using LLDB to debug, and I met a problem with the anonymous union/structs.
One of my class has union of structs. like below:
unsigned char type;
I have a MyString* names pMyStr; My questions:
- how can I refer to data member mnPad2 and mpData?, I tried pMyStr->flags works ok, but pMyStr->mnPad2 doesn’t work.
- I also want to write a python function to set a type summary, how can I get these data members in Python?
Thanks in advance!