[binutils-gdb] [gdb] Ignore trailing whitespace in gdb/gdb-gdb.gdb.in
Tom de Vries
vries@sourceware.org
Thu Jun 18 20:07:35 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d7885e15c78d258c1a7e064897ab6e0a15d00139
commit d7885e15c78d258c1a7e064897ab6e0a15d00139
Author: Tom de Vries <tdevries@suse.de>
Date: Thu Jun 18 22:06:50 2026 +0200
[gdb] Ignore trailing whitespace in gdb/gdb-gdb.gdb.in
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.
Approved-By: Tom Tromey <tom@tromey.com>
Diff:
---
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",
]
More information about the Gdb-cvs
mailing list