diff options
author | Tom de Vries <tdevries@suse.de> | 2025-05-20 11:05:54 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-05-20 11:05:54 +0200 |
commit | a9717d23a944eaae5342305b372693f608e092a2 (patch) | |
tree | 545baa64bcb4034a1a59dec7ef2700cdb858e3d0 | |
parent | d8f05f2022b629a3dcd821e1d190750d4f103b9a (diff) | |
download | binutils-a9717d23a944eaae5342305b372693f608e092a2.zip binutils-a9717d23a944eaae5342305b372693f608e092a2.tar.gz binutils-a9717d23a944eaae5342305b372693f608e092a2.tar.bz2 |
[gdb/testsuite] Make gdb.stabs codespell-clean
Make gdb.stabs codespell-clean and add the dir to the pre-commit
configuration.
Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r-- | .pre-commit-config.yaml | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.stabs/weird.def | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00ea9f1..82df791 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -70,7 +70,7 @@ repos: rev: v2.4.1 hooks: - id: codespell - files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|gdb|go|modula2|objc|opencl|perf|replay|server|testsuite|tui|xml)))/' + files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|gdb|go|modula2|objc|opencl|perf|replay|server|stabs|testsuite|tui|xml)))/' args: [--config, gdb/contrib/setup.cfg] - repo: local hooks: diff --git a/gdb/testsuite/gdb.stabs/weird.def b/gdb/testsuite/gdb.stabs/weird.def index 179b126..f809963 100644 --- a/gdb/testsuite/gdb.stabs/weird.def +++ b/gdb/testsuite/gdb.stabs/weird.def @@ -294,7 +294,7 @@ attr69: # Using double quotes requires an escaping, as the stabs string # is a double quote delimited string. .stabs "constString2:c=s\"Double quote String2\"", N_LSYM,0,0, 0 -# Escaping sinlge quote with is easy +# Escaping single quote with is easy .stabs "constString3:c=s'String3 with embedded quote \' in the middle'", N_LSYM,0,0, 0 # Esaping double quotes is less clear... .stabs "constString4:c=s\"String4 with embedded quote \\" in the middle\"", N_LSYM,0,0, 0 |