forked from qt-creator/qt-creator
Debugger: Remove obsolete code.
This commit is contained in:
@@ -661,24 +661,6 @@ QtDumperHelper::Type QtDumperHelper::specialType(QString s)
|
|||||||
return UnknownType;
|
return UnknownType;
|
||||||
}
|
}
|
||||||
|
|
||||||
QtDumperHelper::ExpressionRequirement QtDumperHelper::expressionRequirements(Type t)
|
|
||||||
{
|
|
||||||
|
|
||||||
switch (t) {
|
|
||||||
case QAbstractItemType:
|
|
||||||
return NeedsComplexExpression;
|
|
||||||
case QMapType:
|
|
||||||
case QMultiMapType:
|
|
||||||
case QMapNodeType:
|
|
||||||
case StdMapType:
|
|
||||||
return NeedsCachedExpression;
|
|
||||||
default:
|
|
||||||
// QObjectSlotType, QObjectSignalType need the signal number, which is numeric
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return NeedsNoExpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
QString QtDumperHelper::qtVersionString() const
|
QString QtDumperHelper::qtVersionString() const
|
||||||
{
|
{
|
||||||
QString rc;
|
QString rc;
|
||||||
@@ -688,19 +670,13 @@ QString QtDumperHelper::qtVersionString() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Parse a list of types.
|
// Parse a list of types.
|
||||||
void QtDumperHelper::parseQueryTypes(const QStringList &l, Debugger debugger)
|
void QtDumperHelper::parseQueryTypes(const QStringList &l, Debugger /* debugger */)
|
||||||
{
|
{
|
||||||
m_nameTypeMap.clear();
|
m_nameTypeMap.clear();
|
||||||
const int count = l.count();
|
const int count = l.count();
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
const Type t = specialType(l.at(i));
|
const Type t = specialType(l.at(i));
|
||||||
if (t != UnknownType) {
|
m_nameTypeMap.insert(l.at(i), t != UnknownType ? t : SupportedType);
|
||||||
// Exclude types that require expression syntax for CDB
|
|
||||||
if (debugger == GdbDebugger || expressionRequirements(t) != NeedsComplexExpression)
|
|
||||||
m_nameTypeMap.insert(l.at(i), t);
|
|
||||||
} else {
|
|
||||||
m_nameTypeMap.insert(l.at(i), SupportedType);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -168,20 +168,8 @@ public:
|
|||||||
// 'data' excludes the leading indicator character.
|
// 'data' excludes the leading indicator character.
|
||||||
static bool parseValue(const char *data, QList<WatchData> *l);
|
static bool parseValue(const char *data, QList<WatchData> *l);
|
||||||
|
|
||||||
// What kind of debugger expressions are required to dump that type.
|
|
||||||
// A debugger with restricted expression syntax can handle
|
|
||||||
// 'NeedsNoExpression' and 'NeedsCachedExpression' if it is found in
|
|
||||||
// the cache.
|
|
||||||
enum ExpressionRequirement {
|
|
||||||
NeedsNoExpression, // None, easy.
|
|
||||||
NeedsCachedExpression, // Common values might be found in expression cache.
|
|
||||||
NeedsComplexExpression // Totally arbitrary, adress-dependent expressions
|
|
||||||
};
|
|
||||||
static ExpressionRequirement expressionRequirements(Type t);
|
|
||||||
|
|
||||||
QString toString(bool debug = false) const;
|
QString toString(bool debug = false) const;
|
||||||
|
|
||||||
|
|
||||||
static QString msgDumperOutdated(double requiredVersion, double currentVersion);
|
static QString msgDumperOutdated(double requiredVersion, double currentVersion);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user