From patchwork Mon Sep 21 10:56:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 8814 Received: (qmail 2263 invoked by alias); 21 Sep 2015 10:56:48 -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 1491 invoked by uid 89); 21 Sep 2015 10:56:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f179.google.com Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com) (209.85.212.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 21 Sep 2015 10:56:46 +0000 Received: by wicge5 with SMTP id ge5so110118131wic.0 for ; Mon, 21 Sep 2015 03:56:43 -0700 (PDT) X-Received: by 10.180.86.231 with SMTP id s7mr11976503wiz.90.1442833002792; Mon, 21 Sep 2015 03:56:42 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com ([195.154.84.196]) by smtp.gmail.com with ESMTPSA id fz1sm12866008wic.8.2015.09.21.03.56.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Sep 2015 03:56:42 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] [gdbserver] Remove unused max_jump_pad_size Date: Mon, 21 Sep 2015 11:56:37 +0100 Message-Id: <1442832997-16206-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes This patch is to remove max_jump_pad_size which isn't used else where, and it causes a recent gcc warning like this, gdb/gdbserver/tracepoint.c:2920:18: error: 'max_jump_pad_size' defined but not used [-Werror=unused-const-variable] static const int max_jump_pad_size = 0x100; ^ cc1: all warnings being treated as errors This variable max_jump_pad_size wasn't used since it was added in 2010 by https://sourceware.org/ml/gdb-patches/2010-06/msg00002.html It is obivous, and I'll push it in. gdb/gdbserver: 2015-09-21 Yao Qi * tracepoint.c (max_jump_pad_size): Remove. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/tracepoint.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index bef1d57..0868f0b 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-09-21 Yao Qi + + * tracepoint.c (max_jump_pad_size): Remove. + 2015-09-18 Yao Qi * linux-aarch64-low.c: Don't include sys/uio.h. diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 5e34eba..6b50f26 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -2916,9 +2916,6 @@ in_readonly_region (CORE_ADDR addr, ULONGEST length) return 0; } -/* The maximum size of a jump pad entry. */ -static const int max_jump_pad_size = 0x100; - static CORE_ADDR gdb_jump_pad_head; /* Return the address of the next free jump space. */