From 1c563889452033b16b5b42720b974ca34f03469d Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 29 Apr 2009 16:52:14 +0200 Subject: Make dumpers output size information. --- src/plugins/debugger/watchutils.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/plugins/debugger/watchutils.h') diff --git a/src/plugins/debugger/watchutils.h b/src/plugins/debugger/watchutils.h index 2fd9a80246..e316973ca1 100644 --- a/src/plugins/debugger/watchutils.h +++ b/src/plugins/debugger/watchutils.h @@ -181,17 +181,28 @@ public: QString toString(bool debug = false) const; -private: + void addSize(const QString &name, int size); + +private: typedef QMap NameTypeMap; + typedef QMap SizeCache; // Look up a simple (namespace) type static Type specialType(QString s); + QString evaluationSizeofTypeExpression(const QString &typeName, Debugger d) const; + + const QString m_stdAllocatorPrefix; NameTypeMap m_nameTypeMap; + SizeCache m_sizeCache; + int m_intSize; + int m_pointerSize; + int m_stdAllocatorSize; int m_qtVersion; QString m_qtNamespace; }; +QDebug operator<<(QDebug in, const QtDumperHelper::TypeData &d); } // namespace Internal } // namespace Debugger -- cgit v1.2.1