diff options
author | 2024-11-08 17:45:32 +0100 | |
---|---|---|
committer | 2024-11-14 22:51:14 -0800 | |
commit | 2c259a91d8d23a8266092b0dd51b8092877717a4 (patch) | |
tree | 468894181f39b3690582f2fc5b0faf5ebba13f91 /scripts/gdb/linux/symbols.py | |
parent | kernel/reboot: replace sprintf() with sysfs_emit() (diff) | |
download | linux-rng-2c259a91d8d23a8266092b0dd51b8092877717a4.tar.xz linux-rng-2c259a91d8d23a8266092b0dd51b8092877717a4.zip |
gdb: lx-symbols: do not error out on monolithic build
This avoids spurious message:
(gdb) lx-symbols
loading vmlinux
No source file named kernel/module/main.c.
Link: https://lkml.kernel.org/r/Zy5ALByQtpO-ddh4@Z926fQmE5jqhFMgp6
Signed-off-by: Etienne Buira <etienne.buira@free.fr>
Cc: Andrew Ballance <andrewjballance@gmail.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
-rw-r--r-- | scripts/gdb/linux/symbols.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py index e8316beb17a7..f6c1b063775a 100644 --- a/scripts/gdb/linux/symbols.py +++ b/scripts/gdb/linux/symbols.py @@ -178,6 +178,9 @@ lx-symbols command.""" self.load_all_symbols() + if not modules.has_modules(): + return + if hasattr(gdb, 'Breakpoint'): if self.breakpoint is not None: self.breakpoint.delete() |