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 0/4] New "set cwd" command


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


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