From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20270 invoked by alias); 11 Jun 2014 19:48:14 -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 20260 invoked by uid 89); 11 Jun 2014 19:48:13 -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,KAM_STOCKGEN,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no 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; Wed, 11 Jun 2014 19:48:10 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5BIrOFt016265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 11 Jun 2014 14:53:24 -0400 Received: from barimba.redhat.com (ovpn-113-103.phx2.redhat.com [10.3.113.103]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5BIrJRL005158; Wed, 11 Jun 2014 14:53:23 -0400 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 7/7] make common_block const Date: Wed, 11 Jun 2014 19:48:00 -0000 Message-Id: <1402512797-6082-8-git-send-email-tromey@redhat.com> In-Reply-To: <1402512797-6082-1-git-send-email-tromey@redhat.com> References: <1402512797-6082-1-git-send-email-tromey@redhat.com> X-SW-Source: 2014-06/txt/msg00477.txt.bz2 This changes general_symbol_info to make "common_block" const. 2014-06-11 Tom Tromey * f-valprint.c (info_common_command_for_block): Update. * symtab.h (struct general_symbol_info) : Now const. --- gdb/ChangeLog | 6 ++++++ gdb/f-valprint.c | 2 +- gdb/symtab.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 0040bbd..408c8cc 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -424,7 +424,7 @@ info_common_command_for_block (const struct block *block, const char *comname, ALL_BLOCK_SYMBOLS (block, iter, sym) if (SYMBOL_DOMAIN (sym) == COMMON_BLOCK_DOMAIN) { - struct common_block *common = SYMBOL_VALUE_COMMON_BLOCK (sym); + const struct common_block *common = SYMBOL_VALUE_COMMON_BLOCK (sym); size_t index; gdb_assert (SYMBOL_CLASS (sym) == LOC_COMMON_BLOCK); diff --git a/gdb/symtab.h b/gdb/symtab.h index 5ccc7ec..5a6f831 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -122,7 +122,7 @@ struct general_symbol_info /* A common block. Used with LOC_COMMON_BLOCK. */ - struct common_block *common_block; + const struct common_block *common_block; /* For opaque typedef struct chain. */ -- 1.9.3