summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2022-01-17 18:03:39 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-01-17 18:03:39 -0800
commit87a0b2fafc09766d8c55461a18345a1cfb10a7fe (patch)
treef2ecd87b34a4709e49b51470056f6b6e528fefca /scripts/gdb/linux
parentb6e43dddaea3dbfa93327f986beb3ec5e8157c4c (diff)
parentdf0cc57e057f18e44dac8e6c18aba47ab53202f9 (diff)
Merge tag 'v5.16' into next
Sync up with mainline to bring in the latest API changes.
Diffstat (limited to 'scripts/gdb/linux')
-rw-r--r--scripts/gdb/linux/symbols.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py
index 08d264ac328b..46f7542db08c 100644
--- a/scripts/gdb/linux/symbols.py
+++ b/scripts/gdb/linux/symbols.py
@@ -148,7 +148,8 @@ lx-symbols command."""
# drop all current symbols and reload vmlinux
orig_vmlinux = 'vmlinux'
for obj in gdb.objfiles():
- if obj.filename.endswith('vmlinux'):
+ if (obj.filename.endswith('vmlinux') or
+ obj.filename.endswith('vmlinux.debug')):
orig_vmlinux = obj.filename
gdb.execute("symbol-file", to_string=True)
gdb.execute("symbol-file {0}".format(orig_vmlinux))