Commit aba1d0a1 authored by hjk's avatar hjk

Debugger: Use hard string limit for displayed strings

Currently 100000 to balance between usability (~14sec here)
and usability (e.g. size of typical source text files)

Change-Id: I8a54c81b104a87ec03babf85cbda2e6cea7d3f70
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent caca06ad
......@@ -63,10 +63,10 @@ def qdump__QByteArray(d, value):
d.putDisplay(StopDisplay)
elif format == 2:
d.putField("editformat", DisplayLatin1String)
d.putField("editvalue", d.encodeByteArray(value))
d.putField("editvalue", d.encodeByteArray(value, limit=100000))
elif format == 3:
d.putField("editformat", DisplayUtf8String)
d.putField("editvalue", d.encodeByteArray(value))
d.putField("editvalue", d.encodeByteArray(value, limit=100000))
if d.isExpanded():
d.putArrayData(data, size, d.charType())
......@@ -1740,7 +1740,7 @@ def qdump__QString(d, value):
d.putDisplay(StopDisplay)
elif format == 2:
d.putField("editformat", DisplayUtf16String)
d.putField("editvalue", d.encodeString(value, limit=None))
d.putField("editvalue", d.encodeString(value, limit=100000))
if d.isExpanded():
d.putArrayData(data, size, d.lookupType(d.qtNamespace() + "QChar"))
......
......@@ -447,7 +447,8 @@ def qdump_stringHelper(d, data, size, charSize):
d.putDisplay(StopDisplay)
elif format == 2:
d.putField("editformat", displayType)
d.putField("editvalue", d.readMemory(data, size))
elided, shown = d.computeLimit(size, 100000)
d.putField("editvalue", d.readMemory(data, shown))
def qdump__std____1__string(d, value):
......
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