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

Daniel Jacobowitz
2007-08-29T20:44:31Z

On Wed, Aug 29, 2007 at 01:41:14PM -0700, Joel Brobecker wrote:
> The one reason I think it's a good idea to expand the field description
> when the field does not have a name, is because there is no way to
> get that information otherwise. But in the case of a named field that
> has an anonymous type, we can easily get the type information simply
> by selecting it (I mean by that: "ptype my_page.u" where u is the field
> name of your union).

That's not quite true. You need a variable, or to mess around with
casting a pointer; you can't say "ptype my_type.member".

--
Daniel Jacobowitz
CodeSourcery