This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 4/5] Implement "set cwd" command on GDB


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]