From 213f2930ee283039e6fa44afd098ca2c8583781a Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@nokia.com> Date: Wed, 20 Oct 2010 11:01:48 +0200 Subject: [PATCH] Debugger: Fix expanding objects for Symbian (gdb 6.8). Handle older Python bindings as well. Reviewed-by: hjk Task-number: QTCREATORBUG-2801 --- share/qtcreator/gdbmacros/dumper.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py index e1a76a2e565..d1dfcd927af 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. -- GitLab