Commit 336dc4e5 authored by hjk's avatar hjk
Browse files

debugger: fix reporting of "no locals"

parent e162f18e
...@@ -436,7 +436,11 @@ class FrameCommand(gdb.Command): ...@@ -436,7 +436,11 @@ class FrameCommand(gdb.Command):
d.pushOutput() d.pushOutput()
watchers = d.safeoutput 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): 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