From patchwork Mon Jul 20 15:31:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 7759 Received: (qmail 74001 invoked by alias); 20 Jul 2015 15:32:05 -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 73992 invoked by uid 89); 20 Jul 2015 15:32:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 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-pd0-f174.google.com Received: from mail-pd0-f174.google.com (HELO mail-pd0-f174.google.com) (209.85.192.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 20 Jul 2015 15:32:04 +0000 Received: by pdbbh15 with SMTP id bh15so57799906pdb.1 for ; Mon, 20 Jul 2015 08:32:02 -0700 (PDT) X-Received: by 10.66.55.41 with SMTP id o9mr61100632pap.148.1437406322798; Mon, 20 Jul 2015 08:32:02 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id ml6sm22427681pdb.69.2015.07.20.08.32.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Jul 2015 08:32:02 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] Fix ARI warnings to nat/aarch64-linux-hw-point.{c,h} Date: Mon, 20 Jul 2015 16:31:49 +0100 Message-Id: <1437406309-12896-1-git-send-email-yao.qi@linaro.org> In-Reply-To: <20150718015421.GA4802@sourceware.org> References: <20150718015421.GA4802@sourceware.org> X-IsSubscribed: yes This patch is to fix two ARI warnings for nat/aarch64-linux-hw-point.{c,h}. It is obvious, and I'll push it in. gdb: 2015-07-20 Yao Qi * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint): Re-indent the code. * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than "unsigned long long". --- gdb/nat/aarch64-linux-hw-point.c | 13 +++++++------ gdb/nat/aarch64-linux-hw-point.h | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gdb/nat/aarch64-linux-hw-point.c b/gdb/nat/aarch64-linux-hw-point.c index 09c30c0..1d9664e 100644 --- a/gdb/nat/aarch64-linux-hw-point.c +++ b/gdb/nat/aarch64-linux-hw-point.c @@ -409,12 +409,13 @@ aarch64_handle_unaligned_watchpoint (enum target_hw_bp_type type, aligned_len); if (show_debug_regs) - debug_printf ( -"handle_unaligned_watchpoint: is_insert: %d\n" -" aligned_addr: %s, aligned_len: %d\n" -" next_addr: %s, next_len: %d\n", -is_insert, core_addr_to_string_nz (aligned_addr), aligned_len, -core_addr_to_string_nz (addr), len); + debug_printf ("handle_unaligned_watchpoint: is_insert: %d\n" + " " + "aligned_addr: %s, aligned_len: %d\n" + " " + "next_addr: %s, next_len: %d\n", + is_insert, core_addr_to_string_nz (aligned_addr), + aligned_len, core_addr_to_string_nz (addr), len); if (ret != 0) return ret; diff --git a/gdb/nat/aarch64-linux-hw-point.h b/gdb/nat/aarch64-linux-hw-point.h index 1d268ea..a430a8f 100644 --- a/gdb/nat/aarch64-linux-hw-point.h +++ b/gdb/nat/aarch64-linux-hw-point.h @@ -102,7 +102,7 @@ ptrace calls to the kernel, i.e. avoid asking the kernel to write to the debug registers with unchanged values. */ -typedef unsigned long long dr_changed_t; +typedef ULONGEST dr_changed_t; /* Set each of the lower M bits of X to 1; assert X is wide enough. */