forked from qt-creator/qt-creator
Debugger: Add dumper for libc++'s std::unordered_map
Change-Id: I15bf32c1f77c17f42ee1da39f1353cff580fa6eb Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -409,7 +409,7 @@ class DumperBase:
|
||||
self.putNumChild(0)
|
||||
|
||||
|
||||
def putMapName(self, value):
|
||||
def putMapName(self, value, index = -1):
|
||||
ns = self.qtNamespace()
|
||||
if str(value.type) == ns + "QString":
|
||||
self.put('key="%s",' % self.encodeString(value))
|
||||
@@ -418,10 +418,11 @@ class DumperBase:
|
||||
self.put('key="%s",' % self.encodeByteArray(value))
|
||||
self.put('keyencoded="%s",' % Hex2EncodedLatin1)
|
||||
else:
|
||||
if self.isLldb:
|
||||
self.put('name="%s",' % value.GetValue())
|
||||
val = str(value.GetValue()) if self.isLldb else str(value)
|
||||
if index == -1:
|
||||
self.put('name="%s",' % val)
|
||||
else:
|
||||
self.put('name="%s",' % value)
|
||||
self.put('key="[%d] %s",' % (index, val))
|
||||
|
||||
def isMapCompact(self, keyType, valueType):
|
||||
format = self.currentItemFormat()
|
||||
|
||||
Reference in New Issue
Block a user