提交 23a67619 编写于 作者: K Khalid Masum 提交者: Linus Torvalds

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: NKhalid Masum <khalid.masum.92@gmail.com>
Acked-by: NLuis Chamberlain <mcgrof@kernel.org>
Fixes: cfc1d277 ("module: Move all into module/")
Reviewed-by: NDouglas Anderson <dianders@chromium.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 44e29e64
...@@ -180,7 +180,7 @@ lx-symbols command.""" ...@@ -180,7 +180,7 @@ lx-symbols command."""
self.breakpoint.delete() self.breakpoint.delete()
self.breakpoint = None self.breakpoint = None
self.breakpoint = LoadModuleBreakpoint( self.breakpoint = LoadModuleBreakpoint(
"kernel/module.c:do_init_module", self) "kernel/module/main.c:do_init_module", self)
else: else:
gdb.write("Note: symbol update on module loading not supported " gdb.write("Note: symbol update on module loading not supported "
"with this gdb version\n") "with this gdb version\n")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册