Commit 812c1034 authored by hjk's avatar hjk

Debugger: Do not restrict precision in double arrays

Task-number: QTCREATORBUG-13050
Change-Id: I54855af0edbbc66c53c8a42da1a216c37a27f25a
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 7a503864
......@@ -513,6 +513,16 @@ void WatchData::updateDisplayedType(const GdbMi &item)
// Utilities to decode string data returned by the dumper helpers.
template <class T>
QString decodeItemHelper(const T &t)
{
return QString::number(t);
}
QString decodeItemHelper(const double &t)
{
return QString::number(t, 'g', 16);
}
template <class T>
void decodeArrayHelper(QList<WatchData> *list, const WatchData &tmplate,
......@@ -527,7 +537,7 @@ void decodeArrayHelper(QList<WatchData> *list, const WatchData &tmplate,
data.sortId = i;
data.iname += QByteArray::number(i);
data.name = QString::fromLatin1("[%1]").arg(i);
data.value = QString::number(p[i]);
data.value = decodeItemHelper(p[i]);
data.address += i * sizeof(T);
data.exp = exp + QByteArray::number(data.address, 16);
data.setAllUnneeded();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment