From patchwork Mon Oct 27 04:32:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 3395 Received: (qmail 30455 invoked by alias); 27 Oct 2014 04:33:45 -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 30442 invoked by uid 89); 27 Oct 2014 04:33:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 27 Oct 2014 04:33:43 +0000 Received: by mail-pa0-f52.google.com with SMTP id fa1so2940692pad.25 for ; Sun, 26 Oct 2014 21:33:42 -0700 (PDT) X-Received: by 10.66.140.69 with SMTP id re5mr21782926pab.18.1414384422201; Sun, 26 Oct 2014 21:33:42 -0700 (PDT) Received: from seba.sebabeach.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id fl15sm9545926pdb.92.2014.10.26.21.33.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Oct 2014 21:33:41 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH 4/9] Rename lookup_symbol_aux_block to lookup_symbol_in_block. Date: Sun, 26 Oct 2014 21:32:54 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. This patch removes the _aux in lookup_symbol_aux_block, it doesn't add any descriptive value, and gives the function a more descriptive name. 2014-10-26 Doug Evans * symtab.c (lookup_symbol_in_block): Renamed from lookup_symbol_aux_block. All callers updated. diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 76ffee2..898fb5a 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -628,7 +628,7 @@ lookup_symbol_file (const char *name, const struct block *global_block = block_global_block (block); if (global_block != NULL) - sym = lookup_symbol_aux_block (name, global_block, domain); + sym = lookup_symbol_in_block (name, global_block, domain); } else { diff --git a/gdb/symtab.c b/gdb/symtab.c index 02c657e..5786a8e 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1515,7 +1515,7 @@ lookup_symbol_aux_local (const char *name, const struct block *block, while (block != static_block) { - sym = lookup_symbol_aux_block (name, block, domain); + sym = lookup_symbol_in_block (name, block, domain); if (sym != NULL) return sym; @@ -1565,8 +1565,8 @@ lookup_objfile_from_block (const struct block *block) /* See symtab.h. */ struct symbol * -lookup_symbol_aux_block (const char *name, const struct block *block, - const domain_enum domain) +lookup_symbol_in_block (const char *name, const struct block *block, + const domain_enum domain) { struct symbol *sym; @@ -1806,7 +1806,7 @@ lookup_symbol_in_static_block (const char *name, const struct block *static_block = block_static_block (block); if (static_block != NULL) - return lookup_symbol_aux_block (name, static_block, domain); + return lookup_symbol_in_block (name, static_block, domain); else return NULL; } diff --git a/gdb/symtab.h b/gdb/symtab.h index 1d95258..5564dbe 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1104,13 +1104,13 @@ extern struct symbol *lookup_symbol_global (const char *name, const struct block *block, const domain_enum domain); -/* Lookup a symbol within the block BLOCK. +/* Lookup a symbol in block BLOCK. Upon success sets BLOCK_FOUND and fixes up the symbol's section if necessary. */ -extern struct symbol *lookup_symbol_aux_block (const char *name, - const struct block *block, - const domain_enum domain); +extern struct symbol *lookup_symbol_in_block (const char *name, + const struct block *block, + const domain_enum domain); /* Look up the `this' symbol for LANG in BLOCK. Return the symbol if found, or NULL if not found. */