mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
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>
This commit is contained in:
parent
54e2289a34
commit
fffb944c4e
2 changed files with 12 additions and 23 deletions
|
@ -133,7 +133,7 @@ lx-symbols command."""
|
|||
gdb.execute("symbol-file vmlinux")
|
||||
|
||||
self.loaded_modules = []
|
||||
module_list = modules.ModuleList()
|
||||
module_list = modules.module_list()
|
||||
if not module_list:
|
||||
gdb.write("no modules found\n")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue