From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5340 invoked by alias); 28 Feb 2013 15:44:33 -0000 Received: (qmail 5332 invoked by uid 22791); 28 Feb 2013 15:44:32 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Feb 2013 15:44:27 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MIX00100T0AAW00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Thu, 28 Feb 2013 17:44:25 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MIX001G5T209U30@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Thu, 28 Feb 2013 17:44:25 +0200 (IST) Date: Thu, 28 Feb 2013 16:20:00 -0000 From: Eli Zaretskii Subject: Re: [patch] gdbserver/win32-low.c: Fix printf-like formatting (was Re: [patch]: Replace stryoul call to fetch address) In-reply-to: <20130228085426.GA30108@calimero.vinschen.de> To: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ehg0wihx.fsf@gnu.org> References: <20130227164419.GA16975@calimero.vinschen.de> <512E404E.6070504@redhat.com> <20130227183805.GA30418@calimero.vinschen.de> <512E5B26.7050104@redhat.com> <20130227194235.GB30418@calimero.vinschen.de> <20130227195013.GC30418@calimero.vinschen.de> <83obf5wlon.fsf@gnu.org> <20130227202902.GB14591@calimero.vinschen.de> <83mwupwjr6.fsf@gnu.org> <20130228085426.GA30108@calimero.vinschen.de> X-IsSubscribed: yes 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: 2013-02/txt/msg00741.txt.bz2 > Date: Thu, 28 Feb 2013 09:54:26 +0100 > From: Corinna Vinschen > > DWORD is unsigned long on 32 bit Windows, right? So it is on 64 bit > Windows as well, since Windows is a LLP64 system. 64 bit Cygwin OTOH > will be LP64, so in 64 bit Cygwin's case, DWORD is defined as unsigned > int for hopefully obvious reasons. > > So, using %ld with no cast will result in a GCC warning on 64 bit > Cygwin, because DWORD is not long. %d would be right for 64 bit Cygwin, > but might result in a warning on 32 bit Mingw/Cygwin and 64 bit Mingw. Thanks. (I think it's madness to use LP64 for Cygwin, but I doubt anyone will hear me.)