[binutils-gdb] [pre-commit] Make gdb/contrib codespell-clean
Tom de Vries via Gdb-cvs <[email protected]> Mon, 1 Jun 2026 12:34:06 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=deccaec3db14e9a34d5531ca0592e76280d4bec8 commit deccaec3db14e9a34d5531ca0592e76280d4bec8 Author: Tom de Vries <[email protected]> Date: Mon Jun 1 14:33:48 2026 +0200 [pre-commit] Make gdb/contrib codespell-clean Fix typos in gdb/contrib. Diff: --- .pre-commit-config.yaml | 2 +- gdb/contrib/ari/update-web-ari.sh | 4 ++-- gdb/contrib/dwarf-to-dwarf-assembler.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fd2360ce49..aa41d17b6ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/gdb/contrib/ari/update-web-ari.sh b/gdb/contrib/ari/update-web-ari.sh index 2f4910018bc..5689791d8b4 100644 --- a/gdb/contrib/ari/update-web-ari.sh +++ b/gdb/contrib/ari/update-web-ari.sh @@ -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> diff --git a/gdb/contrib/dwarf-to-dwarf-assembler.py b/gdb/contrib/dwarf-to-dwarf-assembler.py index 4832c6c8cb1..58342274fb1 100755 --- a/gdb/contrib/dwarf-to-dwarf-assembler.py +++ b/gdb/contrib/dwarf-to-dwarf-assembler.py @@ -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]