From patchwork Thu Aug 21 08:32:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Bin.Cheng" X-Patchwork-Id: 2483 Received: (qmail 29155 invoked by alias); 21 Aug 2014 08:32:11 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 29145 invoked by uid 89); 21 Aug 2014 08:32:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS, UNSUBSCRIBE_BODY autolearn=no version=3.3.2 X-HELO: mail-qg0-f50.google.com Received: from mail-qg0-f50.google.com (HELO mail-qg0-f50.google.com) (209.85.192.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 21 Aug 2014 08:32:10 +0000 Received: by mail-qg0-f50.google.com with SMTP id z107so5102870qgd.9 for ; Thu, 21 Aug 2014 01:32:08 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.101.142 with SMTP id u14mr68822622qge.48.1408609927978; Thu, 21 Aug 2014 01:32:07 -0700 (PDT) Received: by 10.140.18.173 with HTTP; Thu, 21 Aug 2014 01:32:07 -0700 (PDT) Date: Thu, 21 Aug 2014 16:32:07 +0800 Message-ID: Subject: [PATCH]Fix aarch64 native build issue caused by use of LONGEST From: "Bin.Cheng" To: gdb-patches@sourceware.org X-IsSubscribed: yes Hi, Recent gdb code refactor changes LONGEST from a macro to a typedef, thus the use of it in aarch64-linux-nat.c is no longer valid. This patch fixes the build failure which is obvious. Is it OK? Thanks, bin 2014-08-21 Bin Cheng * aarch64-linux-nat.c (dr_changed_t): Change the type from unsigned LONGEST to ULONGEST. diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c index 4ae789b..1184197 100644 --- a/gdb/aarch64-linux-nat.c +++ b/gdb/aarch64-linux-nat.c @@ -144,7 +144,7 @@ static int debug_hw_points; ptrace calls to the kernel, i.e. avoid asking the kernel to write to the debug registers with unchanged values. */ -typedef unsigned LONGEST dr_changed_t; +typedef ULONGEST dr_changed_t; /* Set each of the lower M bits of X to 1; assert X is wide enough. */