aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2019-10-18 18:30:49 +0100
committerMark Brown <broonie@kernel.org>2019-10-18 18:30:49 +0100
commit112d6212c80a1c560757520bd822a41c0ad15c2c (patch)
tree051580f1a55aa8d1b59120f21767a624d0291dbc /scripts/gdb/linux
parentspi: Fix SPI_CS_HIGH setting when using native and GPIO CS (diff)
parentLinux 5.4-rc3 (diff)
downloadwireguard-linux-112d6212c80a1c560757520bd822a41c0ad15c2c.tar.xz
wireguard-linux-112d6212c80a1c560757520bd822a41c0ad15c2c.zip
Merge tag 'v5.4-rc3' into spi-5.4
Linux 5.4-rc3
Diffstat (limited to 'scripts/gdb/linux')
-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):