Skip to content

Commit 552ab2a

Browse files
Nikolay Borisovtorvalds
authored andcommitted
scripts/gdb: Perform path expansion to lx-symbol's arguments
Python doesn't do automatic expansion of paths. In case one passes path of the from ~/foo/bar the gdb scripts won't automatically expand that and as a result the symbols files won't be loaded. Fix this by explicitly expanding all paths which begin with "~" Link: http://lkml.kernel.org/r/1467127337-11135-5-git-send-email-kieran@bingham.xyz Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com> Signed-off-by: Kieran Bingham <kieran@bingham.xyz> Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e2aa2f8 commit 552ab2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/gdb/linux/symbols.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def load_all_symbols(self):
153153
saved_state['breakpoint'].enabled = saved_state['enabled']
154154

155155
def invoke(self, arg, from_tty):
156-
self.module_paths = arg.split()
156+
self.module_paths = [os.path.expanduser(p) for p in arg.split()]
157157
self.module_paths.append(os.getcwd())
158158

159159
# enforce update

0 commit comments

Comments
 (0)