scripts/gdb/symbols: handle module path parameters
commit581ee79a25("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. Link: https://lkml.kernel.org/r/20260304110642.2020614-2-benjamin@sipsolutions.net Fixes:581ee79a25("scripts/gdb/symbols: make BPF debug info available to GDB") Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Cc: Ilya Leoshkevich <iii@linux.ibm.com> Cc: Jan Kiszka <jan.kiszka@siemens.com> Cc: Kieran Bingham <kbingham@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
73d40c42f6
commit
8e4513303b
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue