Re: [PATCH v2] gdb: lx-symbols: store the abspath()

From: Andrew Morton
Date: Tue Feb 23 2021 - 19:57:09 EST


On Tue, 23 Feb 2021 16:12:17 +0100 Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:

> On Thu, 2020-12-17 at 09:31 +0100, Jan Kiszka wrote:
> > On 17.12.20 09:17, Johannes Berg wrote:
> > > From: Johannes Berg <johannes.berg@xxxxxxxxx>
> > >
> > > If we store the relative path, the user might later cd to a
> > > different directory, and that would break the automatic symbol
> > > resolving that happens when a module is loaded into the target
> > > kernel. Fix this by storing the abspath() of each path given,
> > > just like we already do for the cwd (os.getcwd() is absolute.)
>
> > Reviewed-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
>
> So ... I'm still carrying this patch.
>
> Anyone want to send it to Linus? Andrew, maybe you?

Sure, I'll grab it after -rc1.