Debugger: Add more options for pointer display

Change-Id: Iaceefc5da11a03052e5a2eb50dab7a85588813b0
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
hjk
2013-11-22 01:21:57 +01:00
parent c21b22f866
commit 848af02753
2 changed files with 10 additions and 15 deletions

View File

@@ -644,20 +644,13 @@ class DumperBase:
self.putNumChild(0)
return True
if format == 6:
# Explicitly requested formatting as array of 10 items.
if format >= 6 and format <= 9:
# Explicitly requested formatting as array of n items.
n = (10, 100, 1000, 10000)[format - 6]
self.putType(typeName)
self.putItemCount(10)
self.putNumChild(10)
self.putArrayData(innerType, value, 10)
return True
if format == 7:
# Explicitly requested formatting as array of 1000 items.
self.putType(typeName)
self.putItemCount(1000)
self.putNumChild(1000)
self.putArrayData(innerType, value, 1000)
self.putItemCount(n)
self.putNumChild(n)
self.putArrayData(innerType, value, n)
return True
if self.isFunctionType(innerType):

View File

@@ -1230,8 +1230,10 @@ QStringList WatchModel::typeFormatList(const WatchData &data) const
<< tr("Local 8bit string")
<< tr("UTF16 string")
<< tr("UCS4 string")
<< tr("Array of 10 items")
<< tr("Array of 1000 items");
<< tr("Array of %1 items").arg(10)
<< tr("Array of %1 items").arg(100)
<< tr("Array of %1 items").arg(1000)
<< tr("Array of %1 items").arg(10000);
if (data.type.contains("char[") || data.type.contains("char ["))
return QStringList()
<< tr("Latin1 string")