summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 13:41:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 13:41:12 +0300
commitc52eb03bad3cc2ca76edc938a5d302faafeaf165 (patch)
tree9273da72f374be94a9c2384a32ae56e6d85cc3b9 /scripts/gdb/linux/modules.py
parentac3a848b893c02d5133138537eda87730b40d63d (diff)
parent4e3ac4150cbd02585dc5cd1b4a25b8519a57c6a2 (diff)
downloadlinux-c52eb03bad3cc2ca76edc938a5d302faafeaf165.tar.xz
Merge v6.13.3
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
-rw-r--r--scripts/gdb/linux/modules.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gdb/linux/modules.py b/scripts/gdb/linux/modules.py
index 298dfcc25eae..fa15f872ddbe 100644
--- a/scripts/gdb/linux/modules.py
+++ b/scripts/gdb/linux/modules.py
@@ -19,6 +19,9 @@ from linux import cpus, utils, lists, constants
module_type = utils.CachedType("struct module")
+def has_modules():
+ return utils.gdb_eval_or_none("modules") is not None
+
def module_list():
global module_type
modules = utils.gdb_eval_or_none("modules")