From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 7/9] [gdb] Ignore trailing whitespace in gdb/gdb-gdb.gdb.in
Date: Thu, 18 Jun 2026 15:38:16 +0200 [thread overview]
Message-ID: <20260618133818.55460-8-tdevries@suse.de> (raw)
In-Reply-To: <20260618133818.55460-1-tdevries@suse.de>
In gdb/gdb-gdb.gdb.in we have:
...
gdb/gdb-gdb.gdb.in:22: trailing whitespace.
+set prompt (top-gdb)
...
The trailing space is significant.
Fix this by dropping the trailing whitespace check for this file.
---
gdb/.gitattributes | 3 +++
gdb/contrib/check-whitespace-pre-commit.py | 1 -
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/gdb/.gitattributes b/gdb/.gitattributes
index fa3e5af7af8..f176977e7aa 100644
--- a/gdb/.gitattributes
+++ b/gdb/.gitattributes
@@ -23,3 +23,6 @@ aclocal.m4 -whitespace
# Imported files.
exc_request.defs -whitespace
+
+# Files with significant trailing whitespace.
+gdb-gdb.gdb.in whitespace=space-before-tab,indent-with-non-tab,-trailing-space
diff --git a/gdb/contrib/check-whitespace-pre-commit.py b/gdb/contrib/check-whitespace-pre-commit.py
index bc76fb0cd5f..7f1d5b47690 100755
--- a/gdb/contrib/check-whitespace-pre-commit.py
+++ b/gdb/contrib/check-whitespace-pre-commit.py
@@ -23,7 +23,6 @@ re_ignore = re.compile("ChangeLog")
# Files that are not clean, so they're only checked when changes.
todo_list = [
- "gdb/gdb-gdb.gdb.in",
"gdb/doc/annotate.texinfo",
"gdb/doc/refcard.tex",
]
--
2.51.0
next prev parent reply other threads:[~2026-06-18 13:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-18 13:38 [PATCH 0/9] [gdb] More whitespace fixes Tom de Vries
2026-06-18 13:38 ` [PATCH 1/9] [gdb] Increase clean range in check-whitespace-pre-commit.py Tom de Vries
2026-06-18 13:38 ` [PATCH 2/9] [gdb] Fix leftover conflict marker in gdb/config/djgpp/README Tom de Vries
2026-06-18 13:38 ` [PATCH 3/9] [gdb] Fix new blank line at EOF in a few scripts Tom de Vries
2026-06-18 13:38 ` [PATCH 4/9] [gdb] Fix new blank line at EOF in a few xml files Tom de Vries
2026-06-18 13:38 ` [PATCH 5/9] [gdb] Ignore whitespace in imported file gdb/exc_request.defs Tom de Vries
2026-06-18 13:38 ` [PATCH 6/9] [gdb] Fix trailing whitespace in some files Tom de Vries
2026-06-18 13:38 ` Tom de Vries [this message]
2026-06-18 13:38 ` [PATCH 8/9] [gdb] Fix trailing whitespace in annotate.texinfo Tom de Vries
2026-06-18 13:38 ` [PATCH 9/9] [gdb] Fix trailing whitespace in refcard.tex Tom de Vries
2026-06-18 14:03 ` [PATCH 0/9] [gdb] More whitespace fixes Eli Zaretskii
2026-06-18 15:25 ` Tom de Vries
2026-06-18 17:13 ` Tom Tromey
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=20260618133818.55460-8-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