* [PATCH] scripts/gdb/symbols: handle module path parameters
@ 2026-03-04 11:06 Benjamin Berg
0 siblings, 0 replies; only message in thread
From: Benjamin Berg @ 2026-03-04 11:06 UTC (permalink / raw)
To: Jan Kiszka, Kieran Bingham, Andrew Morton, Ilya Leoshkevich
Cc: linux-kernel, Benjamin Berg, Johannes Berg
From: Benjamin Berg <benjamin.berg@intel.com>
The commit 581ee79a2547 ("scripts/gdb/symbols: make BPF debug info
available to GDB") added support to make BPF debug information available
to GDB. However, the argument handling loop was slightly broken, causing
it to fail if further modules were passed. Fix it to append these passed
modules to the instance variable after expansion.
Fixes: 581ee79a2547 ("scripts/gdb/symbols: make BPF debug info available to GDB")
CC: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
---
scripts/gdb/linux/symbols.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py
index d4308b726183..943ff1228b48 100644
--- a/scripts/gdb/linux/symbols.py
+++ b/scripts/gdb/linux/symbols.py
@@ -298,7 +298,7 @@ are loaded as well."""
if p == "-bpf":
monitor_bpf = True
else:
- p.append(os.path.abspath(os.path.expanduser(p)))
+ self.module_paths.append(os.path.abspath(os.path.expanduser(p)))
self.module_paths.append(os.getcwd())
if self.breakpoint is not None:
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-04 11:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 11:06 [PATCH] scripts/gdb/symbols: handle module path parameters Benjamin Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox