From 3fcafefa9e30a4a593febef616c576d0085339e0 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Thu, 8 Jul 2010 18:59:00 +0200 Subject: [PATCH] debugger: work around failing gdb.lookup_type for arrays. see http://sourceware.org/bugzilla/show_bug.cgi?id=11797 --- share/qtcreator/gdbmacros/dumper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py index 036d40bb3bc..19b8482fee6 100644 --- a/share/qtcreator/gdbmacros/dumper.py +++ b/share/qtcreator/gdbmacros/dumper.py @@ -810,7 +810,7 @@ def extractFields(type): # Insufficient, see http://sourceware.org/bugzilla/show_bug.cgi?id=11777: #fields = stripTypedefs(value.type).fields() # This seems to work. - #warn("TYPE 0: %s" % type) + warn("TYPE 0: %s" % type) type = stripTypedefs(type) #warn("TYPE 1: %s" % type) # This fails for arrays. See comment in lookupType. @@ -819,7 +819,7 @@ def extractFields(type): type = type2 #warn("TYPE 2: %s" % type) fields = type.fields() - #warn("FIELDS: %s" % fields) + warn("FIELDS: %s" % fields) return fields ####################################################################### -- GitLab