This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/4] New "set cwd" command
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: gdb-patches at sourceware dot org, palves at redhat dot com
- Date: Tue, 12 Sep 2017 19:56:54 +0300
- Subject: Re: [PATCH 0/4] New "set cwd" command
- Authentication-results: sourceware.org; auth=none
- References: <20170912042325.14927-1-sergiodj@redhat.com> <83fubsq84f.fsf@gnu.org> <87zi9zeud6.fsf@redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Sergio Durigan Junior <sergiodj@redhat.com>
> Cc: gdb-patches@sourceware.org, palves@redhat.com
> Date: Tue, 12 Sep 2017 12:48:05 -0400
>
> The new "set cwd" command also uses chdir (i.e., no shell involved), but
> because it is shared code between GDB and gdbserver, and because
> gdbserver doesn't link against readline, it cannot use tilde_expand.
> Therefore I had to import the "glob" module from gnulib. And also, this
> specific chdir is only invoked after the call to fork/vfork on
> fork_inferior, but before we actually execute the binary.
Thanks.
The last bit means that this will only work for targets that use
fork/vfork, i.e. only for Posix targets. Right?