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 "~"
Unified · Split
| @@ -153,7 +153,7 @@ lx-symbols command.""" · 152 unmodified lines | ||
| 153 | 153 | saved_state['breakpoint'].enabled = saved_state['enabled'] |
| 154 | 154 | |
| 155 | 155 | 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()] | |
| 157 | 157 | self.module_paths.append(os.getcwd()) |
| 158 | 158 | |
| 159 | 159 | # enforce update |