]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Fix whitespace in *.def
authorTom de Vries <tdevries@suse.de>
Tue, 9 Dec 2025 23:25:20 +0000 (00:25 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 9 Dec 2025 23:25:20 +0000 (00:25 +0100)
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 <tom@tromey.com>
gdb/.gitattributes
gdb/contrib/check-whitespace-pre-commit.py
gdb/i386-syscalls.def
gdb/std-operator.def
gdb/unwind_stop_reasons.def
gdbserver/.gitattributes
gdbsupport/.gitattributes

index 26250fdf89cece466ca1658d2f0c90dcf8e72345..a3f15e96349ddd27b839f3b78392e6356c0f4b19 100644 (file)
@@ -19,3 +19,4 @@ aclocal.m4  -whitespace
 # Tab-indented files.
 
 *.[ly] whitespace=space-before-tab,indent-with-non-tab,trailing-space
+*.def  whitespace=space-before-tab,indent-with-non-tab,trailing-space
index b840aba9f475f8080b7499f82751d055b225e9da..d7fa45d1529a8fb204cd11e364e75e2d4343e9e4 100755 (executable)
@@ -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 = []
index 5ba384ab505bed31452664fcec9f299d06265e10..40e8db9e4b11baf922d362f64053ebbb1004f8d2 100644 (file)
@@ -18,7 +18,7 @@
    Generated using linux v6.13 and command:
 
      $ egrep -v "^#.*" ./arch/x86/entry/syscalls/syscall_32.tbl \
-         | awk '{printf "SYSCALL (%s, %s)\n", $1, $3}'
+        | awk '{printf "SYSCALL (%s, %s)\n", $1, $3}'
 */
 
 SYSCALL (0, restart_syscall)
index d12421e8a83b428da30a89029f29555482f500c3..817d8a193f0845429c1c445a2a8b2efb7fbc8ba8 100644 (file)
@@ -334,8 +334,8 @@ OP (OP_RUST_ARRAY)
 
 /* ================ Ada operators ================ */
 
-/* X IN A'RANGE(N).  N is an immediate operand, surrounded by 
-   BINOP_IN_BOUNDS before and after.  A is an array, X an index 
+/* X IN A'RANGE(N).  N is an immediate operand, surrounded by
+   BINOP_IN_BOUNDS before and after.  A is an array, X an index
    value.  Evaluates to true iff X is within range of the Nth
    dimension (1-based) of A.  (A multi-dimensional array
    type is represented as array of array of ...) */
@@ -353,18 +353,18 @@ OP (OP_ATR_SIZE)
 OP (OP_ATR_TAG)
 OP (OP_ATR_VAL)
 
-/* Ada type qualification.  It is encoded as for UNOP_CAST, above, 
+/* Ada type qualification.  It is encoded as for UNOP_CAST, above,
    and denotes the TYPE'(EXPR) construct. */
 OP (UNOP_QUAL)
 
-/* X IN TYPE.  The `TYPE' argument is immediate, with 
-   UNOP_IN_RANGE before and after it. True iff X is a member of 
+/* X IN TYPE.  The `TYPE' argument is immediate, with
+   UNOP_IN_RANGE before and after it. True iff X is a member of
    type TYPE (typically a subrange). */
 OP (UNOP_IN_RANGE)
 
 /* An aggregate.   A single immediate operand, N>0, gives
    the number of component specifications that follow.  The
-   immediate operand is followed by a second OP_AGGREGATE.  
+   immediate operand is followed by a second OP_AGGREGATE.
    Next come N component specifications.  A component
    specification is either an OP_OTHERS (others=>...), an
    OP_CHOICES (for named associations), or other expression (for
index 432064f6eadca7220837086d1442673d10bbe810..cb457683b0b5a0a455c39c31d757d3aac42f74d1 100644 (file)
 
 /* Reasons why frames could not be further unwound
    SET (name, description)
-  
+
    After this reason name, all reasons should be considered errors;
    i.e.: abnormal stack termination.
-   FIRST_ERROR (name)  
-   
+   FIRST_ERROR (name)
+
    First and Last reason defined
    FIRST_ENTRY (name)
    LAST_ENTRY (name)  */
 
 #ifdef SET
-/* No particular reason; either we haven't tried unwinding yet, 
+/* No particular reason; either we haven't tried unwinding yet,
    or we didn't fail.  */
 SET (UNWIND_NO_REASON, "no reason")
 
index fc269b48aed97d7da09bdc3a5cf0968ccc27e79d..4e52bde97e790d6ce4a8a7a082edb20816c27077 100644 (file)
@@ -14,3 +14,7 @@
 
 configure   -whitespace
 aclocal.m4  -whitespace
+
+# Tab-indented files.
+
+*.def  whitespace=space-before-tab,indent-with-non-tab,trailing-space
index 808fc2530dccda45de8f7c01049ecf89040a1cf4..1646aa459b6a3ba6c9cac02aaa67ab2f3d91bc77 100644 (file)
@@ -19,3 +19,7 @@ Makefile.in -whitespace
 # Imported files.
 
 unordered_dense/* -whitespace
+
+# Tab-indented files.
+
+*.def  whitespace=space-before-tab,indent-with-non-tab,trailing-space