From: "Machado, Luis" <Luis.Machado@amd.com>
To: Tom Tromey <tom@tromey.com>, Simon Marchi <simark@simark.ca>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Remove unused str_backtrace_unavailable variable
Date: Fri, 1 May 2026 15:58:28 +0000 [thread overview]
Message-ID: <BN7PPF915F741668302E3D011E614D4A4509D322@BN7PPF915F74166.namprd12.prod.outlook.com> (raw)
In-Reply-To: <87bjezi0ya.fsf@tromey.com>
Thanks for the heads up on Insight. For context, this came up when using llvm.
It got grumpy about the unused-but-initialized value.
________________________________________
From: Tom Tromey <tom@tromey.com>
Sent: Friday, 1 May 2026 16:50
To: Simon Marchi
Cc: Machado, Luis; gdb-patches@sourceware.org
Subject: Re: [PATCH] Remove unused str_backtrace_unavailable variable
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
Simon> Seems quite obvious to me, but I would wait for Andrew to confirm that
Simon> this wasn't meant to be used somewhere. For instance, in the
Simon> libbacktrace_error function. But I think the message there is clear, so
Simon> I'd be fine with just deleting the variable.
I considered this before approving but my view is that if it is needed,
it is trivial to revert a deletion like this.
I'd generally consider the removal of an unused object to be obvious,
with the caveats:
1. If it looks like maybe it *ought* to be used, then send an RFA
instead;
2. Be sure to check Insight as it uses a few things that are otherwise
unused.
Tom
prev parent reply other threads:[~2026-05-01 15:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-01 7:31 Luis Machado
2026-05-01 12:59 ` Tom Tromey
2026-05-01 14:17 ` Simon Marchi
2026-05-01 14:20 ` Luis
2026-05-01 15:50 ` Tom Tromey
2026-05-01 15:58 ` Machado, Luis [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=BN7PPF915F741668302E3D011E614D4A4509D322@BN7PPF915F74166.namprd12.prod.outlook.com \
--to=luis.machado@amd.com \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
--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