diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py index b9e35531d71..35d09aec3c4 100644 --- a/share/qtcreator/gdbmacros/dumper.py +++ b/share/qtcreator/gdbmacros/dumper.py @@ -436,7 +436,11 @@ class FrameCommand(gdb.Command): d.pushOutput() watchers = d.safeoutput - print('data=[' + locals + ',' + watchers + ']\n') + sep = "" + if len(locals) and len(watchers): + sep = "," + + print('data=[' + locals + sep + watchers + ']\n') def handleWatch(self, d, exp, iname):