Commit b0fb396d authored by hjk's avatar hjk

debugger: don't issue 'name' field twice for watched items

parent 7cd27f2e
......@@ -410,7 +410,7 @@ class FrameCommand(gdb.Command):
d.beginHash()
d.put('iname="watch.%s",' % name)
d.put('name="%s",' % exp)
d.put('exp="%s"' % exp)
d.put('exp="%s",' % exp)
try:
list = eval(exp)
#warn("EVAL: LIST: %s" % list)
......@@ -437,7 +437,7 @@ class FrameCommand(gdb.Command):
d.beginHash()
d.put('iname="watch.%s",' % name)
d.put('name="%s",' % exp)
d.put('exp="%s"' % exp)
d.put('exp="%s",' % exp)
handled = False
if exp == "<Edit>":
d.put(',value=" ",')
......@@ -445,7 +445,7 @@ class FrameCommand(gdb.Command):
else:
try:
value = parseAndEvaluate(exp)
item = Item(value, "watch", name, name)
item = Item(value, "watch", None, None)
d.safePutItemHelper(item)
except RuntimeError:
d.put(',value="<invalid>",')
......
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