From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [RFC 3/3] [gdb/contrib] Use shfmt --simplify in shfmt.sh
Date: Wed, 2 Sep 2026 15:17:39 +0200 [thread overview]
Message-ID: <20260902131739.2125928-4-tdevries@suse.de> (raw)
In-Reply-To: <20260902131739.2125928-1-tdevries@suse.de>
Use shfmt --simplify in gdb/contrib/shfmt.sh.
---
gdb/contrib/shfmt.sh | 1 +
gdb/make-init-c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/gdb/contrib/shfmt.sh b/gdb/contrib/shfmt.sh
index 0f1cf332b2a..e6ab481e17f 100755
--- a/gdb/contrib/shfmt.sh
+++ b/gdb/contrib/shfmt.sh
@@ -50,6 +50,7 @@ with_indent()
--space-redirects \
--case-indent \
--binary-next-line \
+ --simplify \
--write \
"$@"
}
diff --git a/gdb/make-init-c b/gdb/make-init-c
index 47bcfd44533..bb8cc6db1f1 100755
--- a/gdb/make-init-c
+++ b/gdb/make-init-c
@@ -64,7 +64,7 @@ echo ""
echo " /* If GDB_REVERSE_INIT_FUNCTIONS is set (any value), reverse the"
echo " order in which initialization functions are called. This is"
echo " used by the testsuite. */"
-echo " if (getenv (\"GDB_REVERSE_INIT_FUNCTIONS\") != nullptr)"
+echo ' if (getenv ("GDB_REVERSE_INIT_FUNCTIONS") != nullptr)'
echo " std::reverse (functions.begin (), functions.end ());"
echo ""
echo " for (initialize_file_ftype *function : functions)"
--
2.51.0
next prev parent reply other threads:[~2026-09-02 13:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 13:17 [RFC 0/3] [pre-commit] Add shfmt Tom de Vries
2026-09-02 13:17 ` [RFC 1/3] " Tom de Vries
2026-09-02 13:17 ` [RFC 2/3] [pre-commit] Enable shfmt Tom de Vries
2026-09-02 13:17 ` Tom de Vries [this message]
2026-09-15 7:26 ` [RFC 3/3] [gdb/contrib] Use shfmt --simplify in shfmt.sh Tom de Vries
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=20260902131739.2125928-4-tdevries@suse.de \
--to=tdevries@suse.de \
--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