summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/symbols.py
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2019-10-04 19:06:41 +0300
committerTony Lindgren <tony@atomide.com>2019-10-04 19:06:41 +0300
commit1913c7f3fc2514e09262baf2267a82dfdb215c39 (patch)
tree1aaf6970e99c1f5535776f9fd9067f0d811b2532 /scripts/gdb/linux/symbols.py
parentf90ec6cdf674248dcad85bf9af6e064bf472b841 (diff)
parent96d49bbfe6c1a6bb43ccd00fb87aca100e32e5e2 (diff)
downloadlinux-1913c7f3fc2514e09262baf2267a82dfdb215c39.tar.xz
Merge tag 'fix-missing-panels' into fixes
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
-rw-r--r--scripts/gdb/linux/symbols.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py
index 2f5b95f09fa0..34e40e96dee2 100644
--- a/scripts/gdb/linux/symbols.py
+++ b/scripts/gdb/linux/symbols.py
@@ -77,12 +77,12 @@ lx-symbols command."""
gdb.write("scanning for modules in {0}\n".format(path))
for root, dirs, files in os.walk(path):
for name in files:
- if name.endswith(".ko"):
+ if name.endswith(".ko") or name.endswith(".ko.debug"):
self.module_files.append(root + "/" + name)
self.module_files_updated = True
def _get_module_file(self, module_name):
- module_pattern = ".*/{0}\.ko$".format(
+ module_pattern = ".*/{0}\.ko(?:.debug)?$".format(
module_name.replace("_", r"[_\-]"))
for name in self.module_files:
if re.match(module_pattern, name) and os.path.exists(name):