]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite124e86264525a262cab84e67913050f9e856c93
tree9c1383187dfce84375b8c52cf847a064b4f3805e
parent8afd05ad9da179654179cf6ad11cbacdb0d31964
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: 13c100fcaa1c ("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