This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: 'char **environ' woes with cygwin
- To: gdb at sourceware dot cygnus dot com
- Subject: Re: 'char **environ' woes with cygwin
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Fri, 25 Aug 2000 13:05:53 -0400
- References: <200008251658.JAA07299@train2.cygnus.com>
- Reply-To: gdb at sources dot redhat dot com
On Fri, Aug 25, 2000 at 09:58:09AM -0700, Michael Elizabeth Chastain wrote:
>> #define environ (*(__get_environ()))
>> -or-
>> extern __declspec(dllimport) char **environ;
>
>The "#define environ" macro is going to yield interesting results
>when various places call "&environ". Then again, maybe none of those
>places are part of gdb on Cygwin.
Dunno where that __get_environ comes from but I've already built a
cygwin gdb with my proposed changes, of course.
cgf