debugger: fix several small issues in the dumper code

Fix typo in QChar helper.
Add a auto tests for some of the dumpers.
Make the dumpers compilable for Qt < 4.5 for better regression tests.
Make manual tests compile with Qt < 4.5.
This commit is contained in:
hjk
2009-06-25 15:00:57 +02:00
parent 62d78361e7
commit b295aec1ad
6 changed files with 310 additions and 53 deletions

View File

@@ -186,7 +186,7 @@ void WatchData::setType(const QString &str)
setHasChildren(false);
}
void WatchData::setAddress(const QString & str)
void WatchData::setAddress(const QString &str)
{
addr = str;
}
@@ -196,8 +196,7 @@ WatchData WatchData::pointerChildPlaceHolder() const
WatchData data1;
data1.iname = iname + QLatin1String(".*");
data1.name = QLatin1Char('*') + name;
data1
.exp = QLatin1String("(*(") + exp + QLatin1String("))");
data1.exp = QLatin1String("(*(") + exp + QLatin1String("))");
data1.type = stripPointerType(type);
data1.setValueNeeded();
return data1;