diff options
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
-rw-r--r-- | scripts/gdb/linux/tasks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py index 63cd6c517e6d..0008e75f1c4f 100644 --- a/scripts/gdb/linux/tasks.py +++ b/scripts/gdb/linux/tasks.py | |||
@@ -30,7 +30,7 @@ class TaskList: | |||
30 | def __iter__(self): | 30 | def __iter__(self): |
31 | return self | 31 | return self |
32 | 32 | ||
33 | def next(self): | 33 | def __next__(self): |
34 | t = self.curr_task | 34 | t = self.curr_task |
35 | if not t or t == self.curr_group: | 35 | if not t or t == self.curr_group: |
36 | self.curr_group = \ | 36 | self.curr_group = \ |
@@ -45,6 +45,8 @@ class TaskList: | |||
45 | self.task_ptr_type, "thread_group") | 45 | self.task_ptr_type, "thread_group") |
46 | return t | 46 | return t |
47 | 47 | ||
48 | def next(self): | ||
49 | return self.__next__() | ||
48 | 50 | ||
49 | def get_task_by_pid(pid): | 51 | def get_task_by_pid(pid): |
50 | for task in TaskList(): | 52 | for task in TaskList(): |