This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] ptype: show members of an unnamed struct inside an union


> >Similarly in your example:
> >
> >    (gdb) ptype mypage.u
> >    type = union {
> >        struct {
> >            int mapping;
> >        };
> >    }
> 
> Are you considering a named Union structure here? I could not reproduce 
> this locally, since there's no such member "u" in the data structure.

Yes, I had to add a name to this field. Otherwise, there is no way
to name it!

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]