Hi experts,<div><br></div><div>I'm using LLDB to debug,  and I met a problem with the anonymous union/structs. </div><div><br></div><div>One of my class has union of structs. like below:</div><div><br></div><div>class MyString </div>
<div>{</div><div>    unsigned char type;</div><div>    union {</div><div>        struct {</div><div>             char mnPad2[kArraySize];</div><div>             union {</div><div>                wchar_t* mpData;</div><div>
             };</div><div>        };</div><div>        struct {</div><div>             char mnPad1;</div><div>             wchar_t  mwszStr[kArraySize];</div><div>        };</div><div>    };</div><div>};</div><div><br></div>
<div>I have a MyString*  names pMyStr; My questions:</div><div><br></div><div>1) how can I refer to data member mnPad2 and mpData?,    I tried pMyStr->flags works ok, but pMyStr->mnPad2 doesn't work.</div><div>2) I also want to write a python function to set a type summary, how can I get these data members in Python?</div>
<div><br></div><div>Thanks in advance!</div><div><br></div><div>-Jonny </div>