This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] win32-nat.c: Simplify generation of Windows environment
- From: Jim Blandy <jimb at codesourcery dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 07 Dec 2006 16:10:14 -0800
- Subject: Re: [RFA] win32-nat.c: Simplify generation of Windows environment
- References: <20061207095839.GA14487@calimero.vinschen.de> <uodqfcrr5.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Thu, 7 Dec 2006 10:58:39 +0100
>> From: Corinna Vinschen <vinschen@redhat.com>
>>
>> the below patch simplifies the code which translates the Cygwin
>> environment into the native Windows environment. So far this is
>> done in GDB manually. However, there's a Cygwin specific function
>> call which does the same for the calling process. Using this call
>> has three advantages.
>
> Is win32-nat.c used only for the Cygwin build? I thought the native
> Windows build used it as well (perhaps with a few patches that are not
> yet part of the CVS), but maybe I was mistaken.
>
> If I am right, then please make this change, and especially the call
> to cygwin_internal, conditioned on __CYGWIN__, or some other
> Cygwin-specific symbol.
$ cd gdb/config
$ grep -nH -e win32-nat */*.m?
i386/cygwin.mh:2:NATDEPFILES= i386-nat.o win32-nat.o corelow.o
$
I think that means it's just Cygwin.