From patchwork Thu May 3 18:41:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keith Seitz X-Patchwork-Id: 27087 Received: (qmail 43802 invoked by alias); 3 May 2018 18:41:58 -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 43775 invoked by uid 89); 3 May 2018 18:41:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_STOCKGEN, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= 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; Thu, 03 May 2018 18:41:56 +0000 Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 432A230B96D0 for ; Thu, 3 May 2018 18:41:55 +0000 (UTC) Received: from theo.uglyboxes.com (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 19BD230012A5 for ; Thu, 3 May 2018 18:41:55 +0000 (UTC) From: Keith Seitz To: gdb-patches@sourceware.org Subject: [PATCH 2/8] Rename symbol_substitution_name Date: Thu, 3 May 2018 11:41:47 -0700 Message-Id: <20180503184153.31183-3-keiths@redhat.com> In-Reply-To: <20180503184153.31183-1-keiths@redhat.com> References: <20180503184153.31183-1-keiths@redhat.com> X-IsSubscribed: yes This patch simply adds a "c_" prefix to symbol_substitution_name to clarify that this is a C language-related function. gdb/ChangeLog: * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ... (c_symbol_substitution_name): ... this. Update all callers. --- gdb/compile/compile-c-symbols.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c index 6987fa375e..9364fc27ac 100644 --- a/gdb/compile/compile-c-symbols.c +++ b/gdb/compile/compile-c-symbols.c @@ -127,7 +127,7 @@ error_symbol_once (struct compile_c_instance *context, address. */ static gdb::unique_xmalloc_ptr -symbol_substitution_name (struct symbol *sym) +c_symbol_substitution_name (struct symbol *sym) { return gdb::unique_xmalloc_ptr (concat ("__", SYMBOL_NATURAL_NAME (sym), "_ptr", (char *) NULL)); @@ -266,7 +266,7 @@ convert_one_symbol (struct compile_c_instance *context, case LOC_LOCAL: substitution: kind = GCC_C_SYMBOL_VARIABLE; - symbol_name = symbol_substitution_name (sym.symbol); + symbol_name = c_symbol_substitution_name (sym.symbol); break; case LOC_STATIC: @@ -657,7 +657,7 @@ generate_c_for_for_one_variable (struct compile_c_instance *compiler, if (SYMBOL_COMPUTED_OPS (sym) != NULL) { gdb::unique_xmalloc_ptr generated_name - = symbol_substitution_name (sym); + = c_symbol_substitution_name (sym); /* We need to emit to a temporary buffer in case an error occurs in the middle. */ string_file local_file;