[Qt-creator] Qt creator, gdb and anonymous unions.

2010-02-14 Thread paulo
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


Re: [Qt-creator] Qt creator, gdb and anonymous unions.

2010-02-14 Thread Andre Poenitz
On Sun, Feb 14, 2010 at 09:38:26PM +0900, paulo wrote:
 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).

I works for a 'plain' anonymous union, but you have nested anonymous
structs, too. This is an oversight on my part, I'll have a look tomorrow.

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


Re: [Qt-creator] Target name wrong, zero number appended

2010-02-14 Thread Coda Highland
The 0 is from the VER_MAJ variable.

/s/ Adam

On Sun, Feb 14, 2010 at 2:28 PM, Matthias Pospiech
matthias.pospi...@gmx.de wrote:
 I create the target in the pro file with:

 CONFIG           += debug
 LIBRARY_NAME = plotext
 CONFIG(debug, debug|release) {
  win32:LIBRARY_NAME = $$join(LIBRARY_NAME,,,d)
 }
 TARGET = $${LIBRARY_NAME}
 message(Target: $$TARGET)

 resulting in the output:
 Project MESSAGE: Target: plotextd

 But the file that is created has the name:
 plotextd0.dll

 so there is a 0 appended.

 Why?

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


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


Re: [Qt-creator] Target name wrong, zero number appended

2010-02-14 Thread Matthias Pospiech
Coda Highland schrieb:
 You mean the specific format used to name the DLL files? I don't know.
 The VER_MAJ variable is documented in the qmake manual.
   
I can take out the VER_MAJ variable, but still the name is with an 
appended 0.

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