From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13718 invoked by alias); 14 Jan 2009 15:05:54 -0000 Received: (qmail 13707 invoked by uid 22791); 14 Jan 2009 15:05:53 -0000 X-Spam-Check-By: sourceware.org Received: from pool-96-233-71-199.bstnma.fios.verizon.net (HELO cgf.cx) (96.233.71.199) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jan 2009 15:05:17 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id AB13713C028; Wed, 14 Jan 2009 10:05:07 -0500 (EST) Received: by ednor.cgf.cx (Postfix, from userid 201) id A26E22B385; Wed, 14 Jan 2009 10:05:07 -0500 (EST) Date: Wed, 14 Jan 2009 15:05:00 -0000 From: Christopher Faylor To: gdb-patches@sourceware.org, Joel Brobecker Subject: Re: [RFA/windows] cast of address to DWORD warning (handle_unload_dll) Message-ID: <20090114150507.GB6423@ednor.casa.cgf.cx> Mail-Followup-To: gdb-patches@sourceware.org, Joel Brobecker References: <20090114034202.GF31296@adacore.com> <20090114042345.GA4556@ednor.casa.cgf.cx> <20090114044615.GA24105@adacore.com> <20090114045137.GA5163@ednor.casa.cgf.cx> <20090114052332.GB24105@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090114052332.GB24105@adacore.com> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00317.txt.bz2 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