diff options
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
-rw-r--r-- | scripts/gdb/linux/cpus.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/gdb/linux/cpus.py b/scripts/gdb/linux/cpus.py index c1441f23c0c2..8045871e2840 100644 --- a/scripts/gdb/linux/cpus.py +++ b/scripts/gdb/linux/cpus.py | |||
@@ -82,7 +82,7 @@ class CpuList(): | |||
82 | def __iter__(self): | 82 | def __iter__(self): |
83 | return self | 83 | return self |
84 | 84 | ||
85 | def next(self): | 85 | def __next__(self): |
86 | while self.bits == 0: | 86 | while self.bits == 0: |
87 | self.entry += 1 | 87 | self.entry += 1 |
88 | if self.entry == self.num_entries: | 88 | if self.entry == self.num_entries: |
@@ -103,6 +103,9 @@ class CpuList(): | |||
103 | 103 | ||
104 | return cpu | 104 | return cpu |
105 | 105 | ||
106 | def next(self): | ||
107 | return self.__next__() | ||
108 | |||
106 | 109 | ||
107 | class PerCpu(gdb.Function): | 110 | class PerCpu(gdb.Function): |
108 | """Return per-cpu variable. | 111 | """Return per-cpu variable. |