Commit 405fef48 authored by hjk's avatar hjk

Debugger: Safeguard against wrong child count

Empty base classes do not seem to show up as children
but are recorded in GetNumberOfChildren

Change-Id: I175b8b0f9a2c761850d34e1ab26ff343be7a16c7
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent f0419375
......@@ -1056,6 +1056,9 @@ class Dumper:
m = value.GetType().GetNumberOfDirectBaseClasses()
if n > 10000:
n = 10000
# seems to happen in the 'inheritance' autotest
if m > n:
m = n
for i in xrange(m):
child = value.GetChildAtIndex(i)
with UnnamedSubItem(self, "@%d" % (i + 1)):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment