Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - if type.code == gdb.TYPE_CODE_STRUCT:
- - try:
- - # Check whether it's an array.
- - arraylen = value["length"]
- - arrayptr = value["ptr"]
- - self.putType(type)
- - self.putAddress(value.address)
- - if str(type) == "struct char[]":
- - self.putValue(encodeCharArray(arrayptr, arraylen),
- - Hex2EncodedLatin1)
- - self.putNumChild(0)
- - else:
- - self.putNumChild(arraylen)
- - self.putItemCount(arraylen)
- - if self.isExpanded(item):
- - with Children(self):
- - for i in range(arraylen):
- - v = arrayptr.dereference()
- - self.putSubItem(Item(v, item.iname))
- - arrayptr += 1
- - return
- - except:
- - pass
Add Comment
Please, Sign In to add comment