diff options
author | hjk <[email protected]> | 2009-08-28 09:44:11 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2009-08-28 10:42:55 +0200 |
commit | 9a5908bf8cbdcad5edfe6a57cc13d0e506e14e22 (patch) | |
tree | 25e417fb9a420f78ded4dd23a2764664cbfa5b2d /src/plugins/debugger/watchutils.cpp | |
parent | b901b5013d66212535de5fec88387e9a6f60bad6 (diff) |
debugger: small improvements to dumpers
Add a dumper for QStack. Also don't crash when accessing an uninitialized
pointer when the pointer looks bad to begin with.
Diffstat (limited to 'src/plugins/debugger/watchutils.cpp')
-rw-r--r-- | src/plugins/debugger/watchutils.cpp | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/plugins/debugger/watchutils.cpp b/src/plugins/debugger/watchutils.cpp index 246c52d58e0..6b6a358455e 100644 --- a/src/plugins/debugger/watchutils.cpp +++ b/src/plugins/debugger/watchutils.cpp @@ -785,24 +785,26 @@ QtDumperHelper::Type QtDumperHelper::specialType(QString s) } else { s = s.mid(namespaceIndex + 2); } - if (s == QLatin1String("QObject")) - return QObjectType; - if (s == QLatin1String("QWidget")) - return QWidgetType; - if (s == QLatin1String("QObjectSlot")) - return QObjectSlotType; - if (s == QLatin1String("QObjectSignal")) - return QObjectSignalType; - if (s == QLatin1String("QVector")) - return QVectorType; if (s == QLatin1String("QAbstractItem")) return QAbstractItemType; if (s == QLatin1String("QMap")) return QMapType; - if (s == QLatin1String("QMultiMap")) - return QMultiMapType; if (s == QLatin1String("QMapNode")) return QMapNodeType; + if (s == QLatin1String("QMultiMap")) + return QMultiMapType; + if (s == QLatin1String("QObject")) + return QObjectType; + if (s == QLatin1String("QObjectSignal")) + return QObjectSignalType; + if (s == QLatin1String("QObjectSlot")) + return QObjectSlotType; + if (s == QLatin1String("QStack")) + return QStackType; + if (s == QLatin1String("QVector")) + return QVectorType; + if (s == QLatin1String("QWidget")) + return QWidgetType; return UnknownType; } @@ -1458,6 +1460,7 @@ void QtDumperHelper::evaluationParameters(const WatchData &data, break; case SupportedType: case QVectorType: + case QStackType: case QObjectType: case QWidgetType: break; |