diff options
author | Khalid Masum <khalid.masum.92@gmail.com> | 2022-07-21 15:30:42 +0600 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-07-21 10:40:55 -0700 |
commit | 23a67619bc7e12e1b3776802f16084530b357a5d (patch) | |
tree | 9c1383187dfce84375b8c52cf847a064b4f3805e /scripts/gdb | |
parent | 44e29e64cf1ac0cffb152e0532227ea6d002aa28 (diff) | |
download | linux-stable-23a67619bc7e12e1b3776802f16084530b357a5d.tar.gz linux-stable-23a67619bc7e12e1b3776802f16084530b357a5d.tar.bz2 linux-stable-23a67619bc7e12e1b3776802f16084530b357a5d.zip |
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: cfc1d277891e ("module: Move all into module/")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/gdb')
-rw-r--r-- | scripts/gdb/linux/symbols.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py index 46f7542db08c..dc07b6d12e30 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") |