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


> Cc: gdb-patches@sourceware.org
> From: Pedro Alves <palves@redhat.com>
> Date: Wed, 13 Sep 2017 15:59:52 +0100
> 
> >> The last bit means that this will only work for targets that use
> >> fork/vfork, i.e. only for Posix targets.  Right?
> > 
> > Well, the way it's implemented, yes.  AFAIK there's nothing preventing
> > this feature to be implemented in non-vfork targets like Windows, except
> > the fact that I don't have access to those targets to test.
> 
> I think that to make "set cwd" work on Windows, gdb would be adjusted to
> pass the desired current directory as argument to CreateProcess, here:
> 
>   https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/windows-nat.c;h=ab5582d46cf3a0873ab32d9c955e95ee75371d4e;hb=HEAD#l2570
> 
> (and the equivalent in gdbserver).

Yes.


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