summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/symbols.py
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2024-12-20 10:25:44 +0100
committerIngo Molnar <mingo@kernel.org>2024-12-20 10:25:44 +0100
commit60675d4ca1ef0857e44eba5849b74a3a998d0c0f (patch)
treeb2fa39712aeca80db32be43f3f5be8e5a58bc0a3 /scripts/gdb/linux/symbols.py
parentdd4059634dab548c904eeae2660ba3c8f7ce843c (diff)
parent8faabc041a001140564f718dabe37753e88b37fa (diff)
Merge branch 'linus' into x86/mm, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
-rw-r--r--scripts/gdb/linux/symbols.py3
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()