]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scripts/gdb: Fix gdb 'lx-symbols' command
authorKhalid Masum <khalid.masum.92@gmail.com>
Thu, 21 Jul 2022 09:30:42 +0000 (15:30 +0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jul 2022 17:40:55 +0000 (10:40 -0700)
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: 2c85ee92a950 ("module: Move all into module/")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/gdb/linux/symbols.py

index 46f7542db08cee435642678386bb9a2f2dd76551..dc07b6d12e300ea72d8ba4b1cd6c33b5c9b6936c 100644 (file)
@@ -180,7 +180,7 @@ lx-symbols command."""
                 self.breakpoint.delete()
                 self.breakpoint = None
             self.breakpoint = LoadModuleBreakpoint(
-                "kernel/module.c:do_init_module", self)
+                "kernel/module/main.c:do_init_module", self)
         else:
             gdb.write("Note: symbol update on module loading not supported "
                       "with this gdb version\n")