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 3/3] gdb: remove demangler_vwarning
Date: Wed, 21 Oct 2026 18:02:46 -0400	[thread overview]
Message-ID: <20261021220252.683337-3-simon.marchi@efficios.com> (raw)
In-Reply-To: <20261021220252.683337-1-simon.marchi@efficios.com>

demangler_vwarning is only used in utils.c, by demangler_warning.
Remove it and inline its content in demangler_warning.

Change-Id: Ice44984063ff47cd2dfa9cb24c58fce1a2b53ba7
---
 gdb/utils.c | 12 +++---------
 gdb/utils.h |  4 ----
 2 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/gdb/utils.c b/gdb/utils.c
index 63ded1b4a323..b3ba01d0e47d 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -532,18 +532,12 @@ static struct internal_problem demangler_warning_problem = {
 };
 
 void
-demangler_vwarning (const char *file, int line, const char *fmt, va_list ap)
-{
-  internal_vproblem (&demangler_warning_problem, file, line, fmt, ap);
-}
-
-void
-demangler_warning (const char *file, int line, const char *string, ...)
+demangler_warning (const char *file, int line, const char *fmt, ...)
 {
   va_list ap;
 
-  va_start (ap, string);
-  demangler_vwarning (file, line, string, ap);
+  va_start (ap, fmt);
+  internal_vproblem (&demangler_warning_problem, file, line, fmt, ap);
   va_end (ap);
 }
 
diff --git a/gdb/utils.h b/gdb/utils.h
index 7e2de3ba7949..7e59037bf5f5 100644
--- a/gdb/utils.h
+++ b/gdb/utils.h
@@ -315,10 +315,6 @@ extern void (*deprecated_error_begin_hook) (void);
 
 extern const char *warning_pre_print;
 
-extern void demangler_vwarning (const char *file, int line,
-			       const char *, va_list ap)
-     ATTRIBUTE_PRINTF (3, 0);
-
 extern void demangler_warning (const char *file, int line,
 			      const char *, ...) ATTRIBUTE_PRINTF (3, 4);
 
-- 
2.56.0


      parent reply	other threads:[~2026-10-21 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-21 22:02 [pushed 1/3] gdb: remove strcmp_iw_ordered Simon Marchi
2026-10-21 22:02 ` [pushed 2/3] gdb: remove strip_leading_path_elements and count_path_elements Simon Marchi
2026-10-21 22:02 ` Simon Marchi [this message]

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=20261021220252.683337-3-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