From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18426 invoked by alias); 13 Dec 2011 03:49:19 -0000 Received: (qmail 18415 invoked by uid 22791); 13 Dec 2011 03:49:17 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KAM_STOCKGEN,RCVD_IN_DNSWL_LOW,TW_BJ 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:49:03 +0000 Received: by mail-iy0-f169.google.com with SMTP id k25so11431337iah.0 for ; Mon, 12 Dec 2011 19:49:03 -0800 (PST) Received: by 10.50.207.72 with SMTP id lu8mr9730712igc.23.1323747683424; Mon, 12 Dec 2011 19:41:23 -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.22 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 19:41:23 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Cc: Andrey Smirnov Subject: [PATCH 055/238] [index] symmisc.c: -Wshadow fix Date: Tue, 13 Dec 2011 03:49:00 -0000 Message-Id: <1323747545-29987-21-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/msg00388.txt.bz2 To ChangeLog: * symmisc.c (dump_msymbols): Rename `index' to `idx'(-Wshadow). --- gdb/symmisc.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 117a22b..b3bd2ed 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -203,7 +203,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile) { struct gdbarch *gdbarch = get_objfile_arch (objfile); struct minimal_symbol *msymbol; - int index; + int idx; char ms_type; fprintf_filtered (outfile, "\nObject file %s:\n\n", objfile->name); @@ -212,7 +212,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile) fprintf_filtered (outfile, "No minimal symbols found.\n"); return; } - index = 0; + idx = 0; ALL_OBJFILE_MSYMBOLS (objfile, msymbol) { struct obj_section *section = SYMBOL_OBJ_SECTION (msymbol); @@ -253,7 +253,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile) ms_type = '?'; break; } - fprintf_filtered (outfile, "[%2d] %c ", index, ms_type); + fprintf_filtered (outfile, "[%2d] %c ", idx, ms_type); fputs_filtered (paddress (gdbarch, SYMBOL_VALUE_ADDRESS (msymbol)), outfile); fprintf_filtered (outfile, " %s", SYMBOL_LINKAGE_NAME (msymbol)); @@ -268,12 +268,12 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile) if (msymbol->filename) fprintf_filtered (outfile, " %s", msymbol->filename); fputs_filtered ("\n", outfile); - index++; + idx++; } - if (objfile->minimal_symbol_count != index) + if (objfile->minimal_symbol_count != idx) { warning (_("internal error: minimal symbol count %d != %d"), - objfile->minimal_symbol_count, index); + objfile->minimal_symbol_count, idx); } fprintf_filtered (outfile, "\n"); } -- 1.7.5.4