OSDN Git Service

non-python: fix dumping of structs inside qt containers
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Thu, 10 Jun 2010 15:58:23 +0000 (17:58 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 11 Jun 2010 09:13:16 +0000 (11:13 +0200)
Reviewed-by: hjk
src/plugins/debugger/gdb/classicgdbengine.cpp

index 5bed94c..1ac4432 100644 (file)
@@ -813,7 +813,7 @@ void GdbEngine::handleVarListChildrenHelperClassic(const GdbMi &item,
             data.type = tr("<anonymous union>");
         } else {
             // A structure. Hope there's nothing else...
-            data.exp = parent.exp + '.' + data.name.toLatin1();
+            data.exp = '(' + parent.exp + ")." + data.name.toLatin1();
         }
 
         if (hasDebuggingHelperForType(data.type)) {