From: Simon Marchi <simark@simark.ca>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Remove "prefix" argument from cp_type_print_method_args
Date: Fri, 17 Apr 2026 22:32:36 -0400 [thread overview]
Message-ID: <b4157428-f469-4222-ae25-da920783c0af@simark.ca> (raw)
In-Reply-To: <20260418021030.2629194-1-tom@tromey.com>
On 2026-04-17 22:10, Tom Tromey wrote:
> The "prefix" argument to cp_type_print_method_args is only ever the
> empty string, so it can be removed.
> ---
> gdb/c-typeprint.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
> index 821b78becf4..e418aca56a4 100644
> --- a/gdb/c-typeprint.c
> +++ b/gdb/c-typeprint.c
> @@ -244,7 +244,7 @@ cp_type_print_derivation_info (struct ui_file *stream,
> /* Print the C++ method arguments ARGS to the file STREAM. */
>
> static void
> -cp_type_print_method_args (struct type *mtype, const char *prefix,
> +cp_type_print_method_args (struct type *mtype,
> const char *varstring, int staticp,
> struct ui_file *stream,
> enum language language,
> @@ -255,8 +255,6 @@ cp_type_print_method_args (struct type *mtype, const char *prefix,
> int varargs = mtype->has_varargs ();
> int i;
>
> - fprintf_symbol (stream, prefix,
> - language_cplus, DMGL_ANSI);
> fprintf_symbol (stream, varstring,
> language_cplus, DMGL_ANSI);
> gdb_puts ("(", stream);
> @@ -1164,7 +1162,6 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
> struct type *mtype = TYPE_FN_FIELD_TYPE (f, j);
>
> cp_type_print_method_args (mtype,
> - "",
> method_name,
> staticp,
> stream, language,
Seems obvious.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Simon
prev parent reply other threads:[~2026-04-18 2:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-18 2:10 Tom Tromey
2026-04-18 2:32 ` 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=b4157428-f469-4222-ae25-da920783c0af@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/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