Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scripts/gdb: Fix gdb 'lx-symbols' command

Currently the command 'lx-symbols' in gdb exits with the error`Function
"do_init_module" not defined in "kernel/module.c"`. This occurs because
the file kernel/module.c was moved to kernel/module/main.c.

Fix this breakage by changing the path to "kernel/module/main.c" in
LoadModuleBreakpoint.

Signed-off-by: Khalid Masum <khalid.masum.92@gmail.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Fixes: cfc1d277891e ("module: Move all into module/")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Khalid Masum and committed by
Linus Torvalds
23a67619 44e29e64

+1 -1
+1 -1
scripts/gdb/linux/symbols.py
··· 180 180 self.breakpoint.delete() 181 181 self.breakpoint = None 182 182 self.breakpoint = LoadModuleBreakpoint( 183 - "kernel/module.c:do_init_module", self) 183 + "kernel/module/main.c:do_init_module", self) 184 184 else: 185 185 gdb.write("Note: symbol update on module loading not supported " 186 186 "with this gdb version\n")