From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed 2/4] gdb/aix-thread: rename lambda parameter in pd_update
Date: Tue, 24 Nov 2026 11:38:54 -0500 [thread overview]
Message-ID: <20261124163901.185016-2-simon.marchi@efficios.com> (raw)
In-Reply-To: <20261124163901.185016-1-simon.marchi@efficios.com>
Building aix-thread.c on AIX fails with:
../../../src/binutils-gdb/gdb/aix-thread.c:932:45: error: declaration of 'thread' shadows a previous local [-Werror=shadow=compatible-local]
Rename the parameter of the lambda passed to find_thread from `thread`
to `tp`.
Change-Id: If9727c1d55ac33a9f3bce40003b2e48147cce3e0
---
gdb/aix-thread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 96fd09a1b626..8823b36509f2 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -929,9 +929,9 @@ pd_update (pid_t pid)
tid = get_signaled_thread (pid);
if (tid != 0)
- thread = find_thread ([&] (thread_info *thread)
+ thread = find_thread ([&] (thread_info *tp)
{
- return thread->ptid.lwp () == tid;
+ return tp->ptid.lwp () == tid;
});
if (!thread)
ptid = ptid_t (pid);
--
2.56.1
next prev parent reply other threads:[~2026-11-24 16:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 16:38 [pushed 1/4] gdb/aix-thread: make state2str return const char * Simon Marchi
2026-11-24 16:38 ` Simon Marchi [this message]
2026-11-24 16:38 ` [pushed 3/4] gdb/aix-thread: remove unused priv variables Simon Marchi
2026-11-24 16:38 ` [pushed 4/4] gdb/aix-thread: fix misleading indentation in store_regs_user_thread Simon Marchi
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=20261124163901.185016-2-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