This is the mail archive of the gdb@sources.redhat.com 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]

Re: 'char **environ' woes with cygwin


> #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.

Michael

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