We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d2512e commit ac33d2cCopy full SHA for ac33d2c
src/etc/gdb_rust_pretty_printing.py
@@ -186,10 +186,10 @@ def children(self):
186
cs = []
187
wrapped_value = self.__val.get_wrapped_value()
188
189
- for field in self.__val.type.get_fields():
+ for number, field in enumerate(self.__val.type.get_fields()):
190
field_value = wrapped_value[field.name]
191
if self.__is_tuple_like:
192
- cs.append(("", field_value))
+ cs.append((str(number), field_value))
193
else:
194
cs.append((field.name, field_value))
195
0 commit comments