Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed] gdb: remove method_name_from_physname
Date: Wed, 14 Oct 2026 15:59:40 -0400	[thread overview]
Message-ID: <20261014195941.528534-1-simon.marchi@efficios.com> (raw)

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<char> demangled_name;
-  gdb::unique_xmalloc_ptr<char> 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<char> cp_canonicalize_string_full
 extern gdb::unique_xmalloc_ptr<char> 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


                 reply	other threads:[~2026-10-14 20:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261014195941.528534-1-simon.marchi@efficios.com \
    --to=simon.marchi@efficios.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox