Commit 336dc4e5 authored by hjk's avatar hjk

debugger: fix reporting of "no locals"

parent e162f18e
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment