From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed 4/4] gdb/aix-thread: fix misleading indentation in store_regs_user_thread
Date: Tue, 24 Nov 2026 11:38:56 -0500 [thread overview]
Message-ID: <20261124163901.185016-4-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:1699:7: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
The checks for the vrsave and vscr registers are indented as if they
were part of the for loop body, but they are not. Fix the indentation.
Change-Id: Ib2c6df20937779b4edd339a0d14076f1891ae185
---
gdb/aix-thread.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 8f2c626c1641..967175e6682f 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -1701,10 +1701,11 @@ store_regs_user_thread (const struct regcache *regcache, pthdb_pthread_t pdtid)
&(vmx.__vr[i]));
ctx.vmx.__vr[i] = vmx.__vr[i];
}
- if (REG_VALID == regcache->get_register_status (tdep->ppc_vrsave_regnum))
- ctx.vmx.__vrsave = vmx.__vrsave;
- if (REG_VALID == regcache->get_register_status (tdep->ppc_vrsave_regnum - 1))
- ctx.vmx.__vscr = vmx.__vscr;
+ if (REG_VALID == regcache->get_register_status (tdep->ppc_vrsave_regnum))
+ ctx.vmx.__vrsave = vmx.__vrsave;
+ if (REG_VALID
+ == regcache->get_register_status (tdep->ppc_vrsave_regnum - 1))
+ ctx.vmx.__vscr = vmx.__vscr;
}
/* Fill vsx registers. */
--
2.56.1
prev parent reply other threads:[~2026-11-24 16:40 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 ` [pushed 2/4] gdb/aix-thread: rename lambda parameter in pd_update Simon Marchi
2026-11-24 16:38 ` [pushed 3/4] gdb/aix-thread: remove unused priv variables Simon Marchi
2026-11-24 16:38 ` 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=20261124163901.185016-4-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