forked from qt-creator/qt-creator
Cdbext: Use max string size for QByteArray dumper.
Change-Id: I19327d45a7a45433b68359d4143e96017f271b4d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -1731,7 +1731,8 @@ static inline bool dumpQByteArray(const SymbolGroupValue &v, std::wostream &str,
|
|||||||
char *memory;
|
char *memory;
|
||||||
unsigned fullSize;
|
unsigned fullSize;
|
||||||
unsigned size;
|
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;
|
return false;
|
||||||
if (size) {
|
if (size) {
|
||||||
// Emulate CDB's behavior of replacing unprintable characters
|
// Emulate CDB's behavior of replacing unprintable characters
|
||||||
|
Reference in New Issue
Block a user