From patchwork Thu Dec 18 12:23:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 4342 Received: (qmail 31288 invoked by alias); 18 Dec 2014 12:24:40 -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 31129 invoked by uid 89); 18 Dec 2014 12:24:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_STOCKGEN, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pa0-f41.google.com Received: from mail-pa0-f41.google.com (HELO mail-pa0-f41.google.com) (209.85.220.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 18 Dec 2014 12:24:38 +0000 Received: by mail-pa0-f41.google.com with SMTP id rd3so1340400pab.0 for ; Thu, 18 Dec 2014 04:24:37 -0800 (PST) X-Received: by 10.66.166.141 with SMTP id zg13mr2966754pab.9.1418905477057; Thu, 18 Dec 2014 04:24:37 -0800 (PST) Received: from seba.sebabeach.org.gmail.com (173-13-178-53-sfba.hfc.comcastbusiness.net. [173.13.178.53]) by mx.google.com with ESMTPSA id s3sm3522360pdg.28.2014.12.18.04.24.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Dec 2014 04:24:36 -0800 (PST) From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH 3/6] [PR 17684] rename initialize_symbol -> initialize_objfile_symbol Date: Thu, 18 Dec 2014 04:23:45 -0800 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. This is just a simple renaming of a function. 2014-12-18 Doug Evans * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol. All callers updated. gdiff --git a/gdb/symtab.c b/gdb/symtab.c index 7d2cde5..e7cd5af 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -5316,7 +5316,7 @@ initialize_ordinary_address_classes (void) /* Initialize the symbol SYM. */ void -initialize_symbol (struct symbol *sym) +initialize_objfile_symbol (struct symbol *sym) { memset (sym, 0, sizeof (*sym)); SYMBOL_SECTION (sym) = -1; diff --git a/gdb/symtab.h b/gdb/symtab.h index 57ed9fc..3a3384d 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1571,7 +1571,7 @@ struct cleanup *demangle_for_lookup (const char *name, enum language lang, struct symbol *allocate_symbol (struct objfile *); -void initialize_symbol (struct symbol *); +void initialize_objfile_symbol (struct symbol *); struct template_symbol *allocate_template_symbol (struct objfile *); diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 49827b6..5a1d7a8 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -1559,7 +1559,7 @@ process_xcoff_symbol (struct coff_symbol *cs, struct objfile *objfile) if (name[0] == '.') ++name; - initialize_symbol (sym); + initialize_objfile_symbol (sym); /* default assumptions */ SYMBOL_VALUE_ADDRESS (sym) = cs->c_value + off;