scripts/gdb: convert ModuleList to generator function
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 17 Feb 2015 21:47:44 +0000 (13:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:55 +0000 (14:34 -0800)
commitfffb944c4e6d3882a7a15c494bd4cde36c68c39c
tree801f69e1d2721cb1e0b49f46b48d32e55beae2f3
parent54e2289a34e13d956acb841a00c3a6f06aced3f9
scripts/gdb: convert ModuleList to generator function

Analogously to the task list, convert the module list to a generator
function.  It noticeably simplifies the code.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/gdb/linux/modules.py
scripts/gdb/linux/symbols.py