Hi friends at the qt-creator mailing list.

I'm wondering if it's possible to get qt-creator debugger view to show 
some anonymous unions the same way gdb does.

That is, for something like:
struct A {
    union {
        struct { float b; };
        struct { float c; };
    };
} a;

a.b = 0;

gdb will print p a:
$1 = {{b = 0},{c = 0}}

on the other hand qt-creator just says it's an anonymous union and will 
refuse to print visualize anything, making me add it by hand to the 
watchers window (very annoying).

Any hints on how to solve this?

I'm using gdb 6.8 and qt-creator 1.3.80 from 23 jan.

Thanks in advance.
Paulo




_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to