From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11527 invoked by alias); 15 Jun 2010 10:06:39 -0000 Received: (qmail 11512 invoked by uid 22791); 15 Jun 2010 10:06:38 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Jun 2010 10:06:08 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o5FA62kp085240 ; Tue, 15 Jun 2010 12:06:02 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms4.u-strasbg.fr [IPv6:2001:660:2402:d::13]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o5FA61ru008178 ; Tue, 15 Jun 2010 12:06:02 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id o5FA61vb074411 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Tue, 15 Jun 2010 12:06:01 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: Cc: "'Pedro Alves'" , "'Stan Shebs'" Subject: [RFA] Fix mingw32 gdbserver build failure Date: Tue, 15 Jun 2010 10:06:00 -0000 Message-ID: <001201cb0c72$5c2b55a0$148200e0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: 2010-06/txt/msg00333.txt.bz2 gdbserver compilation fails for mingw32. This was because of int64_t use in emit_const of revision 1.70 dated 2010-06-14. Rather than simply adding a single line patch as obvious, I would prefer that we use HAVE_STDINT_H in all occurences of include Pierre Muller ChangeLog entry: 2010-06-15 Pierre Muller * server.h: Add missing "stdint.h" include with guard. thread-db.c: Add inlcude guard for "stdint.h" header. Index: server.h =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/server.h,v retrieving revision 1.70 diff -u -p -r1.70 server.h --- server.h 14 Jun 2010 22:16:09 -0000 1.70 +++ server.h 15 Jun 2010 09:56:57 -0000 @@ -29,6 +29,9 @@ #include #include #include +#ifdef HAVE_STDINT_H +#include +#endif #ifdef HAVE_ERRNO_H #include #endif Index: thread-db.c =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/thread-db.c,v retrieving revision 1.36 diff -u -p -r1.36 thread-db.c --- thread-db.c 3 May 2010 18:13:36 -0000 1.36 +++ thread-db.c 15 Jun 2010 09:56:57 -0000 @@ -34,7 +34,9 @@ static int thread_db_use_events; #include #endif +#ifdef HAVE_STDINT_H #include +#endif #include #include