diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py index e1a76a2e565486f65e8697de74573ead60ee22bf..d1dfcd927affa70824baaa7912993e3248454ab0 100644 --- a/share/qtcreator/gdbmacros/dumper.py +++ b/share/qtcreator/gdbmacros/dumper.py @@ -1660,7 +1660,13 @@ class Dumper: #warn("FIELD NAME: %s" % field.name) #warn("FIELD TYPE: %s" % field.type) - if field.is_base_class: + # The 'field.is_base_class' attribute exists in gdb 7.0.X and later only. + # Symbian gdb is 6.8 as of 20.10.2010. TODO: Remove once Symbian gdb is up to date. + if hasattr(field, 'is_base_class'): + isBaseClass = field.is_base_class + else: + isBaseClass = field.name == stripClassTag(str(field.type)) + if isBaseClass: # Field is base type. We cannot use field.name as part # of the iname as it might contain spaces and other # strange characters.