[PATCH 0/4] New "set cwd" command
Sergio Durigan Junior
sergiodj@redhat.com
Wed Sep 13 21:56:00 GMT 2017
On Wednesday, September 13 2017, Eli Zaretskii wrote:
>> 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.
Thanks, that makes things easier.
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/
More information about the Gdb-patches
mailing list