From d69a12a10c62e3cad71792e5043207ba4cd7f524 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Tue, 29 Jun 2010 10:58:17 +0200
Subject: [PATCH] debugger: fix array dumpers

---
 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 86bdd8cca0f..fc146963843 100644
--- a/share/qtcreator/gdbmacros/dumper.py
+++ b/share/qtcreator/gdbmacros/dumper.py
@@ -1419,8 +1419,8 @@ class Dumper:
                     charptr = lookupType("unsigned char").pointer()
                     addr1 = (baseptr+1).cast(charptr)
                     addr0 = baseptr.cast(charptr)
-                    self.put('addrbase="%s",', cleanAddress(addr0))
-                    self.put('addrstep="%s",', addr1 - addr0)
+                    self.put('addrbase="%s",' % cleanAddress(addr0))
+                    self.put('addrstep="%s",' % (addr1 - addr0))
 
                 innerType = None
                 if len(fields) == 1 and fields[0].name is None:
-- 
GitLab