This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/windows] cast of address to DWORD warning (handle_unload_dll)
On Wed, Jan 14, 2009 at 09:23:32AM +0400, Joel Brobecker wrote:
>> Ugh. I didn't know Windows behaved that way. I use Cygwin's
>> implementation internally but I actually don't know what Cygwin does
>> with %p for the rest of the world and my PC is turned off right now.
>> Maybe it does the same thing.
>
>I didn't realize that cygwin had its own implementation of printf.
>I tried on x86 XP, and cygwin does print %p as 0xdeadbeef. The same
>program, compiled with our MinGW compiler generates DEADBEEF.
Cygwin has its own implementation of every POSIX function. There isn't
any overlap between Windows versions of functions like printf and the
Cygwin version. In many cases Cygwin just uses newlib, though.
cgf