Commit 3de15920 authored by hjk's avatar hjk
Browse files

Debugger: Fix display of anon unions with LLDB



Change-Id: Ifd11317f8389963e5c98230d6885311a84c2dc25
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent b3612a04
......@@ -455,6 +455,9 @@ class SubItem:
value = component
value.SetPreferSyntheticValue(False)
self.name = value.GetName()
if self.name is None:
d.anonNumber += 1
self.name = "#%d" % d.anonNumber
else:
self.name = component
self.iname = "%s.%s" % (d.currentIName, self.name)
......@@ -1064,6 +1067,7 @@ class Dumper:
frame = self.currentThread().GetSelectedFrame()
self.currentIName = 'local'
self.put('data=[')
self.anonNumber = -1
for value in frame.GetVariables(True, True, False, False):
if self.dummyValue is None:
self.dummyValue = value
......
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