Cdbext: Use max string size for QByteArray dumper.

Change-Id: I19327d45a7a45433b68359d4143e96017f271b4d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
David Schulz
2015-03-19 07:24:16 +01:00
parent 0f8b5ef436
commit 5ffb70ab75

View File

@@ -1731,7 +1731,8 @@ static inline bool dumpQByteArray(const SymbolGroupValue &v, std::wostream &str,
char *memory;
unsigned fullSize;
unsigned size;
if (!readQt5StringData(dV, qtInfo, false, 0, 10240, &fullSize, &size, &memory))
const unsigned &maxStringSize = ExtensionContext::instance().parameters().maxStringLength;
if (!readQt5StringData(dV, qtInfo, false, 0, maxStringSize, &fullSize, &size, &memory))
return false;
if (size) {
// Emulate CDB's behavior of replacing unprintable characters