From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1659 invoked by alias); 24 Aug 2013 19:34:11 -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 1649 invoked by uid 89); 24 Aug 2013 19:34:11 -0000 X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.2 Received: from mail-ee0-f47.google.com (HELO mail-ee0-f47.google.com) (74.125.83.47) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 24 Aug 2013 19:34:10 +0000 Received: by mail-ee0-f47.google.com with SMTP id d49so881720eek.34 for ; Sat, 24 Aug 2013 12:34:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=dGSDF2Stn8s1Swyq2j4sI02l0FlVIZ7IS7yE6ykO2Dc=; b=aTA9I6POebXozYY1hY3BZmZmqCLbHytu6uw5wtIHCG7IK4oCBzy+PMWp8Y/XjicQ0b AuQywFlssCd7zRG7dqeqazQXLsp1t0CLUpBfLSlv5MhaKLcCd5khimz7NMJQYus4155C UIJFfvJty69TLVYXxCw6KIMDpq7MhAxDg2ftpBXEei6RxoeAL7JumpBeLcX80BKg0F71 jvqhLRwNUhS12pcTjVRprD3I4JOQ4/2GIjiiqY36AHRBnAYgk+NAwQl4Y7RRFd4czN+l bYNqgZsW0MqN64sDfMQCBk9UE3KTzHlff6nmLgrgAen9WrmNSA3XLaUrP+5aBEX5jHQW nQ+w== X-Gm-Message-State: ALoCoQngec3rK5+iJkKu9iVjjclCnBuEcMnfsqHo+Sv2XUAotooxJsN7VzOgqHBv5a0ynnuYFYSu X-Received: by 10.15.36.9 with SMTP id h9mr10508148eev.30.1377372847711; Sat, 24 Aug 2013 12:34:07 -0700 (PDT) Received: from localhost.localdomain (cpc6-seac21-2-0-cust453.7-2.cable.virginmedia.com. [82.1.113.198]) by mx.google.com with ESMTPSA id d8sm8774318eeh.8.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 24 Aug 2013 12:34:06 -0700 (PDT) Message-ID: <52190AAD.2050901@linaro.org> Date: Sat, 24 Aug 2013 19:34:00 -0000 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: gdb-patches@sourceware.org CC: patches@linaro.org Subject: [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures. Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-08/txt/msg00718.txt.bz2 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__ */ -- 1.8.1.4