debugger: fix reporting of "no locals"

This commit is contained in:
hjk
2010-01-11 13:21:48 +01:00
parent e162f18e81
commit 336dc4e53b

View File

@@ -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):