Skip to content

Commit c37f4dd

Browse files
committed
Do not print string twice
1 parent 9903a88 commit c37f4dd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.gdb.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ def to_string(self):
3232

3333
def children(self):
3434
for field in self.val.type.fields():
35-
if field.name == 'val':
36-
yield ('val', self.format_string())
37-
else:
38-
yield (field.name, self.val[field.name])
35+
yield (field.name, self.val[field.name])
3936

4037
def format_string(self):
4138
len = int(self.val['len'])

0 commit comments

Comments
 (0)