Skip to content

Commit 23a6761

Browse files
Labnanntorvalds
authored andcommitted
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 <[email protected]> Acked-by: Luis Chamberlain <[email protected]> Fixes: cfc1d27 ("module: Move all into module/") Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 44e29e6 commit 23a6761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gdb/linux/symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def invoke(self, arg, from_tty):
180180
self.breakpoint.delete()
181181
self.breakpoint = None
182182
self.breakpoint = LoadModuleBreakpoint(
183-
"kernel/module.c:do_init_module", self)
183+
"kernel/module/main.c:do_init_module", self)
184184
else:
185185
gdb.write("Note: symbol update on module loading not supported "
186186
"with this gdb version\n")

0 commit comments

Comments
 (0)