Skip to content

Commit 83b90c5

Browse files
committed
Support older versions of Python in gdb.
1 parent 459e29e commit 83b90c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tools/gdb/libpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,8 @@ def iteritems(self):
742742
if has_values:
743743
values = values['values']
744744
if has_values:
745-
yield from items_from_keys_and_values(keys, values)
745+
for item in items_from_keys_and_values(keys, values):
746+
yield item
746747
return
747748
entries, nentries = self._get_entries(keys)
748749
for i in safe_range(nentries):
@@ -2010,7 +2011,7 @@ def move_in_stack(move_up):
20102011
print('Unable to find an older python frame')
20112012
else:
20122013
print('Unable to find a newer python frame')
2013-
2014+
20142015

20152016
class PyUp(gdb.Command):
20162017
'Select and print all python stack frame in the same eval loop starting from the one that called this one (if any)'

0 commit comments

Comments
 (0)