[PATCH v3 4/5] Implement "set cwd" command on GDB
Eli Zaretskii
eliz@gnu.org
Sat Sep 23 05:52:00 GMT 2017
> From: Sergio Durigan Junior <sergiodj@redhat.com>
> Cc: Pedro Alves <palves@redhat.com>, gdb-patches@sourceware.org
> Date: Fri, 22 Sep 2017 16:26:56 -0400
>
> >> (gdb) set cwd ~ # I haven't even connected to a target yet.
> >> # Where should this be expanded?
> >> # On host may be incorrect.
> >> # '~' -> /home/pedro on this machine
> >
> > You can expand it when you connect. The value has no use until then
> > anyway.
>
> So you're proposing that we discard the previous path expansion done
> before connecting, right?
Yes, discard and replace with the actual expansion which the target
returns.
More information about the Gdb-patches
mailing list