]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Make gdb/contrib codespell-clean
authorTom de Vries <tdevries@suse.de>
Mon, 1 Jun 2026 12:33:48 +0000 (14:33 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 1 Jun 2026 12:33:48 +0000 (14:33 +0200)
Fix typos in gdb/contrib.

.pre-commit-config.yaml
gdb/contrib/ari/update-web-ari.sh
gdb/contrib/dwarf-to-dwarf-assembler.py

index 5fd2360ce497577a613f163eaf68944f82718add..aa41d17b6ee9728adb8371f8595a7a0a9c1ebfa2 100644 (file)
@@ -71,7 +71,7 @@ repos:
     rev: v2.4.2
     hooks:
     - id: codespell
-      files: '^(gdbsupport|gdbserver|gdb/(dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/'
+      files: '^(gdbsupport|gdbserver|gdb/(contrib|dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/'
       args: [--toml, gdb/pyproject.toml]
     - id: codespell
       name: codespell-log
index 2f4910018bc38a8bdbeea9f2bdb608f8b2575379..5689791d8b451065a8758dcdc805ae07d66f63a6 100644 (file)
@@ -877,12 +877,12 @@ EOF
 
     # Check for invalid categories
     for a in $all; do
-       alls="$alls all[$a] = 1 ;"
+       all2="$all2 all[$a] = 1 ;"
     done
     cat ari.*.doc | $AWK >> ${newari} '
 BEGIN {
     FS = ":"
-    '"$alls"'
+    '"$all2"'
 }
 {
     # ari.*.doc: <BUG>:<COUNT>:<CATEGORY>:<DOC>
index 4832c6c8cb1414bf9fb92e4f06d4f0364cd85359..58342274fb1dbdbad03d5a1c9998ac5a5758a957 100755 (executable)
@@ -421,7 +421,7 @@ class DWARFCompileUnit(DWARFDIE):
         #     param_value = int(self.is_fission)
         #     cu_params += ["fission", str(param_value)]
 
-        # CU labels are not currently implemented, see commend above.
+        # CU labels are not currently implemented, see comment above.
         # if self.cu_label is not None:
         #     cu_params += ["label", self.cu_label]