[Qt-creator] Qt creator, gdb and anonymous unions.
André Pönitz
andre.poenitz at nokia.com
Wed Feb 17 14:43:38 CET 2010
On Wednesday 17 February 2010 14:14:59 ext paulo wrote:
> Hi,
>
> the py script now works for nested anonymous unions, but apparently the
> hash used in the process (inconveniently) sorts the names.
> I think it would be better to keep the groupings. (just remove the sorting)
> ex:
>
> struct S {
> union {
> struct { float a, z; };
> struct { float b, y; };
> };
> } s;
>
> sould be formatted as:
> $1 +
> +-+a
> | +z
> |
> +-+b
> +x
>
> and not
> $1 +
> +a
> +b
> +y
> +z
>
> Cheers,
> Paulo
Feel free to submit a patch ;-)
It's not really straight-forward. You'd need to 'invent' names for the unnamed
parts and recognize them again when asked by the Gui to expand them.
It did not seem worth the trouble for such a corner case.
Well, when I think about it, one might generate the full hierarchy in one go.
Andre'
More information about the Qt-creator-old
mailing list