From 21b10d4c3e687ecdc4738900269d75691e67def7 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 10 Dec 2025 00:25:20 +0100 Subject: [gdb] Fix whitespace in *.def Add indent-with-non-tab for *.def in gdb*/.gitattributes. Fix whitespace in the *.def files in gdb*, and add these files to the clean list in gdb/contrib/check-whitespace-pre-commit.py. Tested on x86_64-linux. Approved-By: Tom Tromey --- gdb/contrib/check-whitespace-pre-commit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/contrib/check-whitespace-pre-commit.py') diff --git a/gdb/contrib/check-whitespace-pre-commit.py b/gdb/contrib/check-whitespace-pre-commit.py index b840aba..d7fa45d 100755 --- a/gdb/contrib/check-whitespace-pre-commit.py +++ b/gdb/contrib/check-whitespace-pre-commit.py @@ -18,7 +18,9 @@ import re import subprocess import sys -re_clean = re.compile("(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac|[chly])$)") +re_clean = re.compile( + "(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac|def|[chly])$)" +) re_clean_exclude = re.compile("^(gdb/symfile.c|gdb/cli/cli-cmds.c)$") clean = [] -- cgit v1.1