From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21665 invoked by alias); 24 Aug 2013 21:04:26 -0000 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 Received: (qmail 21651 invoked by uid 89); 24 Aug 2013 21:04:26 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.2 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 24 Aug 2013 21:04:25 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1VDL0R-0004dj-V1 from Luis_Gustavo@mentor.com ; Sat, 24 Aug 2013 14:04:23 -0700 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 24 Aug 2013 14:04:23 -0700 Received: from [172.30.3.24] ([172.30.3.24]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 24 Aug 2013 14:04:23 -0700 Message-ID: <52191FD0.6040605@codesourcery.com> Date: Sat, 24 Aug 2013 21:04:00 -0000 From: Luis Machado Reply-To: lgustavo@codesourcery.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Will Newton CC: gdb-patches@sourceware.org, patches@linaro.org Subject: Re: [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures. References: <52190AAD.2050901@linaro.org> In-Reply-To: <52190AAD.2050901@linaro.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-08/txt/msg00719.txt.bz2 On 08/24/2013 04:34 PM, Will Newton wrote: > > As uintptr_t is used stdint.h must be included on all architectures. > > 2013-08-24 Will Newton > > * common/linux-ptrace.c: Include stdint.h unconditionally. > --- > gdb/common/linux-ptrace.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gdb/common/linux-ptrace.c b/gdb/common/linux-ptrace.c > index a4a2ca3..3a8e25e 100644 > --- a/gdb/common/linux-ptrace.c > +++ b/gdb/common/linux-ptrace.c > @@ -30,6 +30,8 @@ > #include "gdb_assert.h" > #include "gdb_wait.h" > > +#include > + > /* Stores the currently supported ptrace options. A value of > -1 means we did not check for features yet. A value of 0 means > there are no supported features. */ > @@ -64,7 +66,6 @@ extern void (linux_ptrace_test_ret_to_nx_instr) (void); > #include > #include > #include > -#include > > #endif /* defined __i386__ || defined __x86_64__ */ > Well spotted. Thanks, Luis