From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16230 invoked by alias); 17 Jun 2014 14:53:04 -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 16003 invoked by uid 89); 17 Jun 2014 14:53:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Jun 2014 14:53:00 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5HED6kg021055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 17 Jun 2014 10:13:07 -0400 Received: from blade.nx (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5HED50O031559 for ; Tue, 17 Jun 2014 10:13:06 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 6ECB5262480 for ; Tue, 17 Jun 2014 15:13:04 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 05/15] Add a const Date: Tue, 17 Jun 2014 14:53:00 -0000 Message-Id: <1403014378-4349-6-git-send-email-gbenson@redhat.com> In-Reply-To: <1403014378-4349-1-git-send-email-gbenson@redhat.com> References: <1403014378-4349-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00597.txt.bz2 This commit adds a const that was in i386-low.c but not in i386-nat.c. gdb/ 2014-06-17 Gary Benson * i386-nat.c (i386_handle_nonaligned_watchpoint) : Make const. --- gdb/ChangeLog | 5 +++++ gdb/i386-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/gdb/i386-nat.c b/gdb/i386-nat.c index a7742f2..23efb33 100644 --- a/gdb/i386-nat.c +++ b/gdb/i386-nat.c @@ -466,7 +466,7 @@ i386_handle_nonaligned_watchpoint (struct i386_debug_reg_state *state, int retval = 0; int max_wp_len = TARGET_HAS_DR_LEN_8 ? 8 : 4; - static int size_try_array[8][8] = + static const int size_try_array[8][8] = { {1, 1, 1, 1, 1, 1, 1, 1}, /* Trying size one. */ {2, 1, 2, 1, 2, 1, 2, 1}, /* Trying size two. */ -- 1.7.1