Hi experts,

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:

class MyString
{
    unsigned char type;
    union {
        struct {
             char mnPad2[kArraySize];
             union {
                wchar_t* mpData;
             };
        };
        struct {
             char mnPad1;
             wchar_t  mwszStr[kArraySize];
        };
    };
};

I have a MyString*  names pMyStr; My questions:

1) how can I refer to data member mnPad2 and mpData?,    I tried
pMyStr->flags works ok, but pMyStr->mnPad2 doesn't work.
2) 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!

-Jonny
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to