projects/linux·commit 23a67619

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

23a67619 · Khalid Masum <[email protected]> · 2022-07-21 15:30:42 +06:00

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 <[email protected]>
Acked-by: Luis Chamberlain <[email protected]>
Fixes: cfc1d277891e ("module: Move all into module/")
Reviewed-by: Douglas Anderson <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
23a67619bc7e12e1b3776802f16084530b357a5d
Parents
44e29e64

Changes

1 files changed · +1 −1

FileStatusAddDelContent
scripts/gdb/linux/symbols.pymodified+1−1View file

scripts/gdb/linux/symbols.py

View file
diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py
index 46f7542..dc07b6d 100644
--- a/scripts/gdb/linux/symbols.py
+++ b/scripts/gdb/linux/symbols.py
@@ -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")