diff options
author | hjk <qtc-committer@nokia.com> | 2008-12-10 16:48:12 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2008-12-10 16:48:12 +0100 |
commit | 540c6de10830326c89da4f4c127551a97c2518a5 (patch) | |
tree | c44399f7a5ca101d5c6f5cc6c3bd3412efa3810f /bin | |
parent | 09da60f050b35b9150b1febdcdd546d7fcb981b7 (diff) | |
download | qt-creator-540c6de10830326c89da4f4c127551a97c2518a5.tar.gz |
work on std::list dumper
Diffstat (limited to 'bin')
-rw-r--r-- | bin/gdbmacros/gdbmacros.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/gdbmacros/gdbmacros.cpp b/bin/gdbmacros/gdbmacros.cpp index abca7066ee..9ea2a9aff5 100644 --- a/bin/gdbmacros/gdbmacros.cpp +++ b/bin/gdbmacros/gdbmacros.cpp @@ -661,11 +661,8 @@ void QDumper::endHash() void QDumper::putEllipsis() { - d.beginHash(); - P(d, "name", "Warning:"); - P(d, "value", "<incomplete>"); - P(d, "type", d.innertype); - d.endHash(); + addCommaIfNeeded(); + *this << "{name=\"<incomplete>\",value=\"\",type=\"" << innertype << "\"}"; } // @@ -2120,7 +2117,7 @@ static void qDumpStdList(QDumper &d) int nn = 0; std::list<int>::const_iterator it = list.begin(); - for (nn < 101 && it != list.end(); ++nn, ++it) + for (; nn < 101 && it != list.end(); ++nn, ++it) qCheckAccess(it.operator->()); if (nn > 100) @@ -2135,7 +2132,7 @@ static void qDumpStdList(QDumper &d) const char *stripped = isPointerType(d.innertype) ? strippedInnerType.data() : 0; d << ",children=["; - std::list<int>::const_iterator it = list.begin(); + it = list.begin(); for (int i = 0; i < 1000 && it != list.end(); ++i, ++it) { d.beginHash(); P(d, "name", "[" << i << "]"); |