From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14316 invoked by alias); 13 Jan 2009 10:24:07 -0000 Received: (qmail 14306 invoked by uid 22791); 13 Jan 2009 10:24:06 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Jan 2009 10:23:30 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1EC4E2A9617; Tue, 13 Jan 2009 05:23:29 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9Y9ZSKlnaFaZ; Tue, 13 Jan 2009 05:23:29 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 55D382A9616; Tue, 13 Jan 2009 05:23:28 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 2706BE7ACD; Tue, 13 Jan 2009 14:23:21 +0400 (RET) Date: Tue, 13 Jan 2009 10:24:00 -0000 From: Joel Brobecker To: Pierre Muller Cc: gdb-patches@sourceware.org Subject: Re: win32-nat.c to windows-nat.c rename Message-ID: <20090113102321.GX24105@adacore.com> References: <20090110090843.GB29274@adacore.com> <20090110165031.GB24850@ednor.casa.cgf.cx> <20090111041848.GQ24105@adacore.com> <20090111042411.GA8509@ednor.casa.cgf.cx> <20090111132129.GS24105@adacore.com> <20090111155801.GA18734@host0.dyn.jankratochvil.net> <20090111183625.GA10501@ednor.casa.cgf.cx> <003101c974b9$e05d4330$a117c990$@u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003101c974b9$e05d4330$a117c990$@u-strasbg.fr> User-Agent: Mutt/1.4.2.2i 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/msg00273.txt.bz2 > There is also a > problem if trying to generate a mutibuild on cygwin on a 32 bit > machine with --enable-64-bit-bfd: Is that something new? Apart from moving some of the code to a different file, I don't think I changed the actual code... I'm wondering if I'm looking at the right version of the code. For instance, it reports errors on the following two lines: cygwin_load_start = (CORE_ADDR) (uintptr_t) ((char *) load_addr + 0x1000); cygwin_load_end = cygwin_load_start + bfd_section_size (abfd, text); > ../../purecvs/gdb/windows-nat.c:654: warning: cast from pointer to integer > of different size load_addr is an LPVOID (which is a void *), so casting it to (char *) should be OK, then to (uintptr_t) should also be OK, and then to a CORE_ADDR, it's an integer to integer conversion, that should be OK too, no? Do you see where the problem is? I'll see if I can reproduce without cygwin... -- Joel