diff options
| author | Daniel Wagner <[email protected]> | 2015-02-17 21:47:41 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-02-17 22:34:54 +0000 |
| commit | 54e2289a34e13d956acb841a00c3a6f06aced3f9 (patch) | |
| tree | 3c5c97fca93b00e4e1e5d48494f321c1cd41c38d /scripts/gdb/vmlinux-gdb.py | |
| parent | scripts/gdb: ignore byte-compiled python files (diff) | |
| download | kernel-54e2289a34e13d956acb841a00c3a6f06aced3f9.tar.gz kernel-54e2289a34e13d956acb841a00c3a6f06aced3f9.zip | |
scripts/gdb: use a generator instead of iterator for task list
The iterator does not return any task_struct from the thread_group list
because the first condition in the 'if not t or ...' will only be the
first time None.
Instead of keeping track of the state ourself in the next() function, we
fall back using Python's generator.
Signed-off-by: Daniel Wagner <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Jason Wessel <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ben Widawsky <[email protected]>
Cc: Borislav Petkov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions
