From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id C67pKEnfz2rCCAsAWB0awg (envelope-from ) for ; Wed, 14 Oct 2026 16:00:09 -0400 Received: by simark.ca (Postfix, from userid 112) id 6E05F1E050; Wed, 14 Oct 2026 16:00:09 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D064C1E04E for ; Wed, 14 Oct 2026 16:00:07 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EC44A4BA23C5 for ; Wed, 14 Oct 2026 20:00:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC44A4BA23C5 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id E84754BA2E15 for ; Wed, 14 Oct 2026 19:59:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E84754BA2E15 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E84754BA2E15 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792007983; cv=none; b=L6lqQ4ikWlWJdeBgtCebir61rshptftcsaBPsCw3VZUgWv0CR8oMmgUmMLw8GhRLe5yFvTSBGvaZvbT6NGKsguYZvKAcebcT12ptMDaTSq8PlGugMRJX2dewC8wT17qZEdJpQk7w8Y29yLfcKODViYta66JwnVXZbel0bezLcEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792007983; c=relaxed/simple; bh=MgJ691d/z2U9KqfYq97ckSczz1q6S9s2nxbT+/9BBMo=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=YDkb41F6xeL6LexNTtIakj2yWrAIbJQ19YJGbq7+dkyRtIm1B9YoFa/JTtBCHr1Vhh/TciMwG3qrdB8T2OdSCHlQdxlbiy6l/ibYAEEmZIx9UdXBOfwDLU6LK9atwws7WPIb/ghSuCreLbgOWJAmW2/ELuZexD/N2QMkS/8Nxxg= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E84754BA2E15 Received: by simark.ca (Postfix) id 727E91E04E; Wed, 14 Oct 2026 15:59:42 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] gdb: remove method_name_from_physname Date: Wed, 14 Oct 2026 15:59:40 -0400 Message-ID: <20261014195941.528534-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org method_name_from_physname has been unused since commit eaea19f98d87 ("gdb: Fully remove stabs code from GDB", 2025-02-12). Remove it. Change-Id: I279673f6bbe9c0a76b46705dc64774a43b070987 --- gdb/cp-support.c | 26 -------------------------- gdb/cp-support.h | 2 -- 2 files changed, 28 deletions(-) diff --git a/gdb/cp-support.c b/gdb/cp-support.c index 3881d4b4cdeb..7a1b07a3b161 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -858,32 +858,6 @@ unqualified_name_from_comp (struct demangle_component *comp) return ret_comp; } -/* Return the name of the method whose linkage name is PHYSNAME. */ - -char * -method_name_from_physname (const char *physname) -{ - void *storage = NULL; - gdb::unique_xmalloc_ptr demangled_name; - gdb::unique_xmalloc_ptr ret; - struct demangle_component *ret_comp; - demangle_parse_info_up info - = mangled_name_to_comp (physname, DMGL_ANSI, &storage, &demangled_name); - - if (info == nullptr) - return nullptr; - - ret_comp = unqualified_name_from_comp (info->tree); - - if (ret_comp != NULL) - /* The ten is completely arbitrary; we don't have a good - estimate. */ - ret = cp_comp_to_string (ret_comp, 10); - - xfree (storage); - return ret.release (); -} - /* If FULL_NAME is the demangled name of a C++ function (including an arg list, possibly including namespace/class qualifications), return a new string containing only the function name (without the diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 2263d5b725c0..00703c52c880 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -93,8 +93,6 @@ extern gdb::unique_xmalloc_ptr cp_canonicalize_string_full extern gdb::unique_xmalloc_ptr cp_class_name_from_physname (const char *physname); -extern char *method_name_from_physname (const char *physname); - extern unsigned int cp_find_first_component (const char *name); extern unsigned int cp_entire_prefix_len (const char *name); base-commit: 5cf59e5560bd1c2756427f55d4290dff7b4a4d56 -- 2.56.0