From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9997 invoked by alias); 13 Dec 2011 03:41:26 -0000 Received: (qmail 9894 invoked by uid 22791); 13 Dec 2011 03:41:25 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Dec 2011 03:41:12 +0000 Received: by mail-iy0-f169.google.com with SMTP id k25so11422557iah.0 for ; Mon, 12 Dec 2011 19:41:12 -0800 (PST) Received: by 10.42.161.10 with SMTP id r10mr14275893icx.22.1323747672234; Mon, 12 Dec 2011 19:41:12 -0800 (PST) Received: from localhost.localdomain (c-24-18-115-186.hsd1.wa.comcast.net. [24.18.115.186]) by mx.google.com with ESMTPS id e2sm81168651ibe.0.2011.12.12.19.41.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 19:41:11 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Cc: Andrey Smirnov Subject: [PATCH 042/238] [index] exec.c: -Wshadow fix Date: Tue, 13 Dec 2011 03:41:00 -0000 Message-Id: <1323747545-29987-8-git-send-email-andrew.smirnov@gmail.com> In-Reply-To: <1323747545-29987-1-git-send-email-andrew.smirnov@gmail.com> References: <1323747545-29987-1-git-send-email-andrew.smirnov@gmail.com> X-IsSubscribed: yes 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 X-SW-Source: 2011-12/txt/msg00366.txt.bz2 To ChangeLog: * exec.c (exec_set_section_address): Rename `index' to `idx'(-Wshadow). --- gdb/exec.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/exec.c b/gdb/exec.c index a2da9d5..d3d3493 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -838,7 +838,7 @@ set_section_command (char *args, int from_tty) it to ADDRESS. */ void -exec_set_section_address (const char *filename, int index, CORE_ADDR address) +exec_set_section_address (const char *filename, int idx, CORE_ADDR address) { struct target_section *p; struct target_section_table *table; @@ -847,7 +847,7 @@ exec_set_section_address (const char *filename, int index, CORE_ADDR address) for (p = table->sections; p < table->sections_end; p++) { if (filename_cmp (filename, p->bfd->filename) == 0 - && index == p->the_bfd_section->index) + && idx == p->the_bfd_section->index) { p->endaddr += address - p->addr; p->addr = address; -- 1.7.5.4