diff options
| author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-04-29 16:52:14 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-04-29 16:52:14 +0200 |
| commit | 1c563889452033b16b5b42720b974ca34f03469d (patch) | |
| tree | 8bea5132a6d052399b296c1161b6f9e7bd1f6f2e /share/qtcreator/gdbmacros/gdbmacros.cpp | |
| parent | cbd856518a73ac42eabc731d567bcbac840bafae (diff) | |
| download | qt-creator-1c563889452033b16b5b42720b974ca34f03469d.tar.gz | |
Make dumpers output size information.
Diffstat (limited to 'share/qtcreator/gdbmacros/gdbmacros.cpp')
| -rw-r--r-- | share/qtcreator/gdbmacros/gdbmacros.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp index 7c766dff31..029de5f6a6 100644 --- a/share/qtcreator/gdbmacros/gdbmacros.cpp +++ b/share/qtcreator/gdbmacros/gdbmacros.cpp @@ -56,6 +56,7 @@ int qtGhVersion = QT_VERSION; #ifdef QT_GUI_LIB +# include <QtGui/QWidget> # include <QtGui/QPixmap> # include <QtGui/QImage> #endif @@ -2685,7 +2686,25 @@ void *qDumpObjectData440( "\"" << ((QT_VERSION >> 16) & 255) << "\"," "\"" << ((QT_VERSION >> 8) & 255) << "\"," "\"" << ((QT_VERSION) & 255) << "\"]"; - d << ",namespace=\""NS"\""; + d << ",namespace=\""NS"\","; +// Dump out size information + d << "sizes={"; + d << "int=\"" << sizeof(int) << "\"," + << "char*=\"" << sizeof(char*) << "\"," + << ""NS"QString=\"" << sizeof(QString) << "\"," + << ""NS"QStringList=\"" << sizeof(QStringList) << "\"," + << ""NS"QObject=\"" << sizeof(QObject) << "\"," +#ifdef QT_GUI_LIB + << ""NS"QWidget=\"" << sizeof(QWidget)<< "\"," +#endif +#ifdef Q_OS_WIN + << "string=\"" << sizeof(std::string) << "\"," + << "wstring=\"" << sizeof(std::wstring) << "\"," +#endif + << "std::string=\"" << sizeof(std::string) << "\"," + << "std::wstring=\"" << sizeof(std::wstring) << "\"," + << "std::allocator=\"" << sizeof(std::allocator<int>) + << "\"}"; d.disarm(); } |
