]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/gdb: add automatic symbol reloading on module insertion
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 17 Feb 2015 21:46:52 +0000 (13:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:53 +0000 (14:34 -0800)
commitf1e9e13a658b4f1ebf2599aaf9daca52d529e8c2
tree864930d353e36989bf5c7c5d378e5eb39cac25d9
parent1be07ba967fdd352d7ce5ecf47186429713e4cbd
scripts/gdb: add automatic symbol reloading on module insertion

This installs a silent breakpoint on the do_init_module function.  The
breakpoint handler will try to load symbols from the module files found
during lx-symbols execution.  This way, breakpoints can be set to module
initialization functions, and there is no need to explicitly call
lx-symbols after (re-)loading a module.

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/symbols.py