Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/7] [pre-commit] Some codespell fixes
@ 2026-03-10  9:18 Tom de Vries
  2026-03-10  9:18 ` [PATCH 1/7] [pre-commit] Make codespell:ignore-begin/end non-greedy Tom de Vries
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-10  9:18 UTC (permalink / raw)
  To: gdb-patches

This series contains some codespell fixes.

The first patch fixes the codespell:ignore-begin/end to be non-greedy.

The second patch gets rid of gdb/contrib/setup.cfg.

The rest of the patches each make one gdb subdir codespell-clean.

Tom de Vries (7):
  [pre-commit] Make codespell:ignore-begin/end non-greedy
  [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml
  [pre-commit] Make gdb/contrib codespell-clean
  [pre-commit] Make gdb/nat codespell-clean
  [pre-commit] Make gdb/features codespell-clean
  [pre-commit] Make gdb/stubs codespell-clean
  [pre-commit] Make gdb/doc codespell-clean

 .pre-commit-config.yaml                 |  6 +--
 gdb/contrib/ari/update-web-ari.sh       |  4 +-
 gdb/contrib/codespell-ignore-words.txt  |  6 ++-
 gdb/contrib/dwarf-to-dwarf-assembler.py |  2 +-
 gdb/contrib/setup.cfg                   | 13 ------
 gdb/doc/gdb.texinfo                     | 58 ++++++++++++++++++-------
 gdb/features/alpha-core.xml             |  2 +
 gdb/features/arc/v2-core.xml            |  2 +-
 gdb/features/i386/32bit-sse.xml         |  2 +
 gdb/features/i386/64bit-sse.xml         |  2 +
 gdb/features/or1k-core.xml              |  2 +
 gdb/features/rs6000/powerpc-602.xml     |  2 +
 gdb/features/rx.xml                     |  2 +
 gdb/nat/linux-btrace.c                  |  2 +-
 gdb/pyproject.toml                      | 14 ++++++
 gdb/stubs/i386-stub.c                   |  2 +-
 gdb/stubs/ia64vms-stub.c                |  4 +-
 gdb/stubs/m32r-stub.c                   |  4 +-
 gdb/stubs/m68k-stub.c                   |  4 +-
 gdb/stubs/sh-stub.c                     |  2 +-
 gdb/stubs/sparc-stub.c                  |  2 +-
 gdb/stubs/z80-stub.c                    |  9 ++--
 pyproject.toml                          |  0
 23 files changed, 95 insertions(+), 51 deletions(-)
 delete mode 100644 gdb/contrib/setup.cfg
 create mode 100644 pyproject.toml


base-commit: 55c46eed2c8a132df2cd98cd0115ad6862604ca2
-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/7] [pre-commit] Make codespell:ignore-begin/end non-greedy
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
@ 2026-03-10  9:18 ` Tom de Vries
  2026-03-10  9:18 ` [PATCH 2/7] [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml Tom de Vries
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-10  9:18 UTC (permalink / raw)
  To: gdb-patches

The current definition of codespell:ignore-begin/end is greedy and
consequently in this example:
...
/* codespell:ignore-begin */
/* Ignore this: usuable.  */
/* codespell:ignore-end */

/* Don't ignore this: usuable.  */

/* codespell:ignore-begin */
/* Ignore that: usuable.  */
/* codespell:ignore-end */
...
the "Don't ignore this" line will be ignored.

Fix this by making the definition non-greedy.
---
 gdb/contrib/setup.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/contrib/setup.cfg b/gdb/contrib/setup.cfg
index 4793a6264af..654eca6b768 100644
--- a/gdb/contrib/setup.cfg
+++ b/gdb/contrib/setup.cfg
@@ -10,4 +10,4 @@ dictionary = gdb/contrib/codespell-dictionary.txt,-
 uri-ignore-words-list = *
 
 # How to ignore blocks of code.
-ignore-multiline-regex = codespell:ignore-begin.*codespell:ignore-end
+ignore-multiline-regex = codespell:ignore-begin.*?codespell:ignore-end
-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 2/7] [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
  2026-03-10  9:18 ` [PATCH 1/7] [pre-commit] Make codespell:ignore-begin/end non-greedy Tom de Vries
@ 2026-03-10  9:18 ` Tom de Vries
  2026-03-10  9:18 ` [PATCH 3/7] [pre-commit] Make gdb/contrib codespell-clean Tom de Vries
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-10  9:18 UTC (permalink / raw)
  To: gdb-patches

The codespell settings are currently in gdb/contrib/setup.cfg.

There's a goal to move settings of Python tools used for gdb to
gdb/pyproject.toml.

Do so, and update the args entries in .pre-commit-config.yaml:
...
- args: [--config, gdb/contrib/setup.cfg]
+ args: [--toml, gdb/pyproject.toml]
...

It's necessary to point codespell as used in pre-commit to the pyproject.toml
file, because:
- pre-commit uses codespell with the repository root as working directory
- codespell currently only supports discovery of configuration files in the
  working directory.  There's an issue open to support hierarchical
  pyproject.toml files [1].

Likewise, it's necessary to point codespell on the CLI to the pyproject.toml
file:
...
$ codespell --toml gdb/pyproject.toml
...

Now that the codespell settings are in gdb/pyproject.toml, codespell will
automatically discover it when running codespell in the gdb directory.
However, that's not useful, because the paths in gdb/pyproject.toml are
relative to the repository root.  Hopefully, that will be fixed once codespell
supports hierarchical toml files.

In the mean time, we could fix this by moving the settings to a pyproject.toml
file in the repository root.  But we have been avoiding this sofar (to keep
project-related things out of the repository root as much as possible), so we
continue having this pre-existing issue.

[1] https://github.com/codespell-project/codespell/issues/3737
---
 .pre-commit-config.yaml |  4 ++--
 gdb/contrib/setup.cfg   | 13 -------------
 gdb/pyproject.toml      | 14 ++++++++++++++
 pyproject.toml          |  0
 4 files changed, 16 insertions(+), 15 deletions(-)
 delete mode 100644 gdb/contrib/setup.cfg
 create mode 100644 pyproject.toml

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dec172379e9..679d089aa94 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -72,11 +72,11 @@ repos:
     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)))/'
-      args: [--config, gdb/contrib/setup.cfg]
+      args: [--toml, gdb/pyproject.toml]
     - id: codespell
       name: codespell-log
       entry: gdb/contrib/codespell-log.sh
-      args: [--config, gdb/contrib/setup.cfg]
+      args: [--toml, gdb/pyproject.toml]
       always_run: true
       verbose: true
       stages: [commit-msg]
diff --git a/gdb/contrib/setup.cfg b/gdb/contrib/setup.cfg
deleted file mode 100644
index 654eca6b768..00000000000
--- a/gdb/contrib/setup.cfg
+++ /dev/null
@@ -1,13 +0,0 @@
-[codespell]
-
-# Skip ChangeLogs and generated files.
-skip = */ChangeLog*,*/configure,gdbsupport/Makefile.in,*.dat,*.eps,gdb/features/*.c,gdb/ada-casefold.h,gdb/copying.c,gdb/gdbarch-gen.h,gdb/gdbarch-gen.c,gdb/target-delegates-gen.c
-
-ignore-words = gdb/contrib/codespell-ignore-words.txt
-dictionary = gdb/contrib/codespell-dictionary.txt,-
-
-# Ignore all URLs.
-uri-ignore-words-list = *
-
-# How to ignore blocks of code.
-ignore-multiline-regex = codespell:ignore-begin.*?codespell:ignore-end
diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml
index 2dc00f4abb2..2b66f47b5a0 100644
--- a/gdb/pyproject.toml
+++ b/gdb/pyproject.toml
@@ -38,3 +38,17 @@ indent-namespace-eval = true
 
 # Used by tclfmt.
 spaces-in-braces = false
+
+[tool.codespell]
+
+# Skip ChangeLogs and generated files.
+skip = '*/ChangeLog*,*/configure,gdbsupport/Makefile.in,*.dat,*.eps,gdb/features/*.c,gdb/ada-casefold.h,gdb/copying.c,gdb/gdbarch-gen.h,gdb/gdbarch-gen.c,gdb/target-delegates-gen.c'
+
+ignore-words = 'gdb/contrib/codespell-ignore-words.txt'
+dictionary = 'gdb/contrib/codespell-dictionary.txt,-'
+
+# Ignore all URLs.
+uri-ignore-words-list = '*'
+
+# How to ignore blocks of code.
+ignore-multiline-regex = 'codespell:ignore-begin.*?codespell:ignore-end'
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 00000000000..e69de29bb2d
-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 3/7] [pre-commit] Make gdb/contrib codespell-clean
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
  2026-03-10  9:18 ` [PATCH 1/7] [pre-commit] Make codespell:ignore-begin/end non-greedy Tom de Vries
  2026-03-10  9:18 ` [PATCH 2/7] [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml Tom de Vries
@ 2026-03-10  9:18 ` Tom de Vries
  2026-03-10  9:18 ` [PATCH 4/7] [pre-commit] Make gdb/nat codespell-clean Tom de Vries
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-10  9:18 UTC (permalink / raw)
  To: gdb-patches

Fix typos in gdb/contrib.
---
 .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 679d089aa94..c0aea1488be 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]
 
-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 4/7] [pre-commit] Make gdb/nat codespell-clean
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
                   ` (2 preceding siblings ...)
  2026-03-10  9:18 ` [PATCH 3/7] [pre-commit] Make gdb/contrib codespell-clean Tom de Vries
@ 2026-03-10  9:18 ` Tom de Vries
  2026-03-10  9:18 ` [PATCH 5/7] [pre-commit] Make gdb/features codespell-clean Tom de Vries
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-10  9:18 UTC (permalink / raw)
  To: gdb-patches

Fix typos in gdb/nat, and add "fpr" to gdb/contrib/codespell-ignore-words.txt.
---
 .pre-commit-config.yaml                | 2 +-
 gdb/contrib/codespell-ignore-words.txt | 1 +
 gdb/nat/linux-btrace.c                 | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c0aea1488be..bb6bc2b4e54 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/(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)))/'
+      files: '^(gdbsupport|gdbserver|gdb/(nat|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/codespell-ignore-words.txt b/gdb/contrib/codespell-ignore-words.txt
index c07df0c001d..c86bd3f0972 100644
--- a/gdb/contrib/codespell-ignore-words.txt
+++ b/gdb/contrib/codespell-ignore-words.txt
@@ -2,3 +2,4 @@ configury
 SME
 Synopsys
 aranges
+fpr
diff --git a/gdb/nat/linux-btrace.c b/gdb/nat/linux-btrace.c
index 46aa2b730a7..1bd3ccb8d31 100644
--- a/gdb/nat/linux-btrace.c
+++ b/gdb/nat/linux-btrace.c
@@ -99,7 +99,7 @@ btrace_this_cpu (void)
   return cpu;
 }
 
-/* Return non-zero if there is new data in PEVENT; zero otherwise.  */
+/* Return non-zero if there is new data in PEV; zero otherwise.  */
 
 static int
 perf_event_new_data (const struct perf_event_buffer *pev)
-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 5/7] [pre-commit] Make gdb/features codespell-clean
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
                   ` (3 preceding siblings ...)
  2026-03-10  9:18 ` [PATCH 4/7] [pre-commit] Make gdb/nat codespell-clean Tom de Vries
@ 2026-03-10  9:18 ` Tom de Vries
  2026-03-10  9:18 ` [PATCH 6/7] [pre-commit] Make gdb/stubs codespell-clean Tom de Vries
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-10  9:18 UTC (permalink / raw)
  To: gdb-patches

Fix typos in gdb/features.
---
 .pre-commit-config.yaml             | 2 +-
 gdb/features/alpha-core.xml         | 2 ++
 gdb/features/arc/v2-core.xml        | 2 +-
 gdb/features/i386/32bit-sse.xml     | 2 ++
 gdb/features/i386/64bit-sse.xml     | 2 ++
 gdb/features/or1k-core.xml          | 2 ++
 gdb/features/rs6000/powerpc-602.xml | 2 ++
 gdb/features/rx.xml                 | 2 ++
 8 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bb6bc2b4e54..36da0d42ca6 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/(nat|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)))/'
+      files: '^(gdbsupport|gdbserver|gdb/(features|nat|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/features/alpha-core.xml b/gdb/features/alpha-core.xml
index 3ff821a7c24..81b8e2d7efe 100644
--- a/gdb/features/alpha-core.xml
+++ b/gdb/features/alpha-core.xml
@@ -21,6 +21,7 @@
 
   <!-- Floating-Point Control Register Flags -->
   <flags id="fpcr_flags" size="8">
+    <!-- codespell:ignore-begin -->
     <!-- Denormal Operand Exception Disable -->
     <field name="DNOD"   start="47" end="47"/>
     <!-- Denormal Operands to Zero -->
@@ -53,6 +54,7 @@
     <field name="INED"   start="62" end="62"/>
     <!-- Summary Bit -->
     <field name="SUM"    start="63" end="63"/>
+    <!-- codespell:ignore-end -->
   </flags>
 
   <!-- Integer Registers -->
diff --git a/gdb/features/arc/v2-core.xml b/gdb/features/arc/v2-core.xml
index 1f46a48ddef..402ada26473 100644
--- a/gdb/features/arc/v2-core.xml
+++ b/gdb/features/arc/v2-core.xml
@@ -41,7 +41,7 @@
 
   <!-- Code pointers.  R30 is general purpose, but it used to be ILINK2 in
   ARCompact, thus its odd position in between of special purpose registers.
-  GCC does't use this register, so it isn't a member of a general group. -->
+  GCC doesn't use this register, so it isn't a member of a general group. -->
   <reg name="r30"   bitsize="32" group=""/>
   <reg name="blink" bitsize="32" type="code_ptr"/>
 
diff --git a/gdb/features/i386/32bit-sse.xml b/gdb/features/i386/32bit-sse.xml
index 16d1a08d5ca..a10a0ce2bab 100644
--- a/gdb/features/i386/32bit-sse.xml
+++ b/gdb/features/i386/32bit-sse.xml
@@ -27,6 +27,7 @@
     <field name="uint128" type="uint128"/>
   </union>
   <flags id="i386_mxcsr" size="4">
+    <!-- codespell:ignore-begin -->
     <field name="IE" start="0" end="0"/>
     <field name="DE" start="1" end="1"/>
     <field name="ZE" start="2" end="2"/>
@@ -41,6 +42,7 @@
     <field name="UM" start="11" end="11"/>
     <field name="PM" start="12" end="12"/>
     <field name="FZ" start="15" end="15"/>
+    <!-- codespell:ignore-end -->
   </flags>
 
   <reg name="xmm0" bitsize="128" type="vec128" regnum="32"/>
diff --git a/gdb/features/i386/64bit-sse.xml b/gdb/features/i386/64bit-sse.xml
index ad4a4f292f8..aa4acefa109 100644
--- a/gdb/features/i386/64bit-sse.xml
+++ b/gdb/features/i386/64bit-sse.xml
@@ -27,6 +27,7 @@
     <field name="uint128" type="uint128"/>
   </union>
   <flags id="i386_mxcsr" size="4">
+    <!-- codespell:ignore-begin -->
     <field name="IE" start="0" end="0"/>
     <field name="DE" start="1" end="1"/>
     <field name="ZE" start="2" end="2"/>
@@ -41,6 +42,7 @@
     <field name="UM" start="11" end="11"/>
     <field name="PM" start="12" end="12"/>
     <field name="FZ" start="15" end="15"/>
+    <!-- codespell:ignore-end -->
   </flags>
 
   <reg name="xmm0" bitsize="128" type="vec128" regnum="40"/>
diff --git a/gdb/features/or1k-core.xml b/gdb/features/or1k-core.xml
index 0d13f355f52..aa0b213aed0 100644
--- a/gdb/features/or1k-core.xml
+++ b/gdb/features/or1k-core.xml
@@ -42,6 +42,7 @@
   <reg name="ppc" bitsize="32" type="code_ptr"/>
   <reg name="npc" bitsize="32" type="code_ptr"/>
   <flags id="sr_flags" size="4">
+    <!-- codespell:ignore-begin -->
     <field name="SM" start="0" end="0"/>
     <field name="TEE" start="1" end="1"/>
     <field name="IEE" start="2" end="2"/>
@@ -60,6 +61,7 @@
     <field name="FO" start="15" end="15"/>
     <field name="SUMRA" start="16" end="16"/>
     <field name="CID" start="28" end="31"/>
+    <!-- codespell:ignore-end -->
   </flags>
   <reg name="sr" bitsize="32" type="sr_flags"/>
 </feature>
diff --git a/gdb/features/rs6000/powerpc-602.xml b/gdb/features/rs6000/powerpc-602.xml
index 41dae94ea23..dd366c1e7f5 100644
--- a/gdb/features/rs6000/powerpc-602.xml
+++ b/gdb/features/rs6000/powerpc-602.xml
@@ -12,6 +12,7 @@
   <xi:include href="power-oea.xml"/>
 
   <feature name="602">
+    <!-- codespell:ignore-begin -->
     <reg name="hid0" bitsize="32"/>
     <reg name="hid1" bitsize="32"/>
     <reg name="iabr" bitsize="32"/>
@@ -22,5 +23,6 @@
     <reg name="ser" bitsize="32"/>
     <reg name="sp" bitsize="32"/>
     <reg name="lt" bitsize="32"/>
+    <!-- codespell:ignore-end -->
   </feature>
 </target>
diff --git a/gdb/features/rx.xml b/gdb/features/rx.xml
index f425c435f06..a3c506188fa 100644
--- a/gdb/features/rx.xml
+++ b/gdb/features/rx.xml
@@ -40,6 +40,7 @@
     </flags>
 
     <flags id="fpsw_flags" size="4">
+      <!-- codespell:ignore-begin -->
       <field name="RM0" start="0" end="0"/>
       <field name="RM1" start="1" end="1"/>
       <field name="CV" start="2" end="2"/>
@@ -60,6 +61,7 @@
       <field name="FU" start="29" end="29"/>
       <field name="FX" start="30" end="30"/>
       <field name="FS" start="31" end="31"/>
+      <!-- codespell:ignore-end -->
     </flags>
 
     <reg name="usp" bitsize="32" type="data_ptr"/>
-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 6/7] [pre-commit] Make gdb/stubs codespell-clean
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
                   ` (4 preceding siblings ...)
  2026-03-10  9:18 ` [PATCH 5/7] [pre-commit] Make gdb/features codespell-clean Tom de Vries
@ 2026-03-10  9:18 ` Tom de Vries
  2026-03-10  9:18 ` [PATCH 7/7] [pre-commit] Make gdb/doc codespell-clean Tom de Vries
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-10  9:18 UTC (permalink / raw)
  To: gdb-patches

Fix typos in gdb/stubs, and add "parm" to
gdb/contrib/codespell-ignore-words.txt.
---
 .pre-commit-config.yaml                | 2 +-
 gdb/contrib/codespell-ignore-words.txt | 1 +
 gdb/stubs/i386-stub.c                  | 2 +-
 gdb/stubs/ia64vms-stub.c               | 4 ++--
 gdb/stubs/m32r-stub.c                  | 4 ++--
 gdb/stubs/m68k-stub.c                  | 4 ++--
 gdb/stubs/sh-stub.c                    | 2 +-
 gdb/stubs/sparc-stub.c                 | 2 +-
 gdb/stubs/z80-stub.c                   | 9 +++++----
 9 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 36da0d42ca6..c936cce67dc 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/(features|nat|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)))/'
+      files: '^(gdbsupport|gdbserver|gdb/(stubs|features|nat|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/codespell-ignore-words.txt b/gdb/contrib/codespell-ignore-words.txt
index c86bd3f0972..b6f80f3ce52 100644
--- a/gdb/contrib/codespell-ignore-words.txt
+++ b/gdb/contrib/codespell-ignore-words.txt
@@ -3,3 +3,4 @@ SME
 Synopsys
 aranges
 fpr
+parm
diff --git a/gdb/stubs/i386-stub.c b/gdb/stubs/i386-stub.c
index cc741fb7a1e..dbeea0f8b37 100644
--- a/gdb/stubs/i386-stub.c
+++ b/gdb/stubs/i386-stub.c
@@ -738,7 +738,7 @@ hexToInt (char **ptr, int *intValue)
 }
 
 /*
- * This function does all command procesing for interfacing to gdb.
+ * This function does all command processing for interfacing to gdb.
  */
 void
 handle_exception (int exceptionVector)
diff --git a/gdb/stubs/ia64vms-stub.c b/gdb/stubs/ia64vms-stub.c
index 7f7aa4e47dd..2a51b782348 100644
--- a/gdb/stubs/ia64vms-stub.c
+++ b/gdb/stubs/ia64vms-stub.c
@@ -138,7 +138,7 @@ static struct debug_flag debug_flags[] =
   /* Disp packets exchanged with gdb.  */
   DEBUG_FLAG_ENTRY("packets"),
 #define trace_pkt (debug_flags[0].val)
-  /* Display entry point informations.  */
+  /* Display entry point information.  */
   DEBUG_FLAG_ENTRY("entry"),
 #define trace_entry (debug_flags[1].val)
   /* Be verbose about exceptions.  */
@@ -1254,7 +1254,7 @@ str2pkt (const char *str)
     gdb_buf[gdb_blen++] = *str++;
 }
 
-/* Extract a number fro the packet.  */
+/* Extract a number from the packet.  */
 
 static unsigned __int64
 pkt2val (const unsigned char *pkt, unsigned int *pos)
diff --git a/gdb/stubs/m32r-stub.c b/gdb/stubs/m32r-stub.c
index 58212efd40d..30a43c73f9e 100644
--- a/gdb/stubs/m32r-stub.c
+++ b/gdb/stubs/m32r-stub.c
@@ -202,7 +202,7 @@ static unsigned char *strcpy (unsigned char *, const unsigned char *);
 static int strlen (const unsigned char *);
 
 /*
- * This function does all command procesing for interfacing to gdb.
+ * This function does all command processing for interfacing to gdb.
  */
 
 void
@@ -699,7 +699,7 @@ set_mem_err (void)
 
 /* Check the address for safe access ranges.  As currently defined,
    this routine will reject the "expansion bus" address range(s).
-   To make those ranges useable, someone must implement code to detect
+   To make those ranges usable, someone must implement code to detect
    whether there's anything connected to the expansion bus. */
 
 static int
diff --git a/gdb/stubs/m68k-stub.c b/gdb/stubs/m68k-stub.c
index 0a19f8e0a34..c63eee7d2c9 100644
--- a/gdb/stubs/m68k-stub.c
+++ b/gdb/stubs/m68k-stub.c
@@ -810,7 +810,7 @@ hexToInt (char **ptr, int *intValue)
 }
 
 /*
- * This function does all command procesing for interfacing to gdb.
+ * This function does all command processing for interfacing to gdb.
  */
 void
 handle_exception (int exceptionVector)
@@ -995,7 +995,7 @@ handle_exception (int exceptionVector)
 			printf ("frame at 0x%x has pc=0x%x, except#=%d\n",
 				frame, frame->exceptionPC,
 				frame->exceptionVector);
-		      /* re-use the last frame, we're skipping it (longjump?) */
+		      /* reuse the last frame, we're skipping it (longjump?) */
 		      frame = (Frame *) 0;
 		      _returnFromException (frame);	/* this is a jump */
 		    }
diff --git a/gdb/stubs/sh-stub.c b/gdb/stubs/sh-stub.c
index 59afc36e15a..3b0667e90e7 100644
--- a/gdb/stubs/sh-stub.c
+++ b/gdb/stubs/sh-stub.c
@@ -1501,7 +1501,7 @@ init_serial (void)
 {
   int i;
 
-  /* Clear TE and RE in Channel 1's SCR   */
+  /* Clear TE and RE in Channel 1's SCR.  codespell:ignore.  */
   SCR1 &= ~(SCI_TE | SCI_RE);
 
   /* Set communication to be async, 8-bit data, no parity, 1 stop bit and use internal clock */
diff --git a/gdb/stubs/sparc-stub.c b/gdb/stubs/sparc-stub.c
index acb7743184d..410f45235b1 100644
--- a/gdb/stubs/sparc-stub.c
+++ b/gdb/stubs/sparc-stub.c
@@ -544,7 +544,7 @@ hexToInt(char **ptr, int *intValue)
 }
 
 /*
- * This function does all command procesing for interfacing to gdb.  It
+ * This function does all command processing for interfacing to gdb.  It
  * returns 1 if you should skip the instruction at the trap address, 0
  * otherwise.
  */
diff --git a/gdb/stubs/z80-stub.c b/gdb/stubs/z80-stub.c
index df87d7950bd..71f1554f8aa 100644
--- a/gdb/stubs/z80-stub.c
+++ b/gdb/stubs/z80-stub.c
@@ -25,7 +25,7 @@
   3. Implement getDebugChar() and putDebugChar(), functions must not return
      until data received or sent.
   4. Implement all optional functions used to toggle breakpoints/watchpoints,
-     if supported. Do not write fuctions to toggle software breakpoints if
+     if supported. Do not write functions to toggle software breakpoints if
      you unsure (GDB will do itself).
   5. Implement serial port initialization routine called at program start.
   6. Add necessary debugger entry points to your program, for example:
@@ -68,13 +68,13 @@
 //#define DBG_SWBREAK_RST 0x08
 
 /* if platform supports hardware breakpoints then define following macro
-   by name of function. Fuction must have next prototype:
+   by name of function. Function must have next prototype:
      int toggle_hwbreak(int set, void *addr);
    function must return 0 on success. */
 //#define DBG_HWBREAK toggle_hwbreak
 
 /* if platform supports hardware watchpoints then define all or some of
-   following macros by names of functions. Fuctions prototypes:
+   following macros by names of functions. Functions prototypes:
      int toggle_watch(int set, void *addr, size_t size);  // memory write watch
      int toggle_rwatch(int set, void *addr, size_t size); // memory read watch
      int toggle_awatch(int set, void *addr, size_t size); // memory access watch
@@ -1074,7 +1074,7 @@ high_hex (byte v) FASTCALL
 static char
 low_hex (byte v) FASTCALL
 {
-/*
+/* codespell:ignore-begin
   __asm
 	ld	a, l
 	and	a, #0x0f
@@ -1084,6 +1084,7 @@ low_hex (byte v) FASTCALL
 	daa
 	ld	l, a
   __endasm;
+  codespell:ignore-end
   (void)v;
 */
   v &= 0x0f;
-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 7/7] [pre-commit] Make gdb/doc codespell-clean
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
                   ` (5 preceding siblings ...)
  2026-03-10  9:18 ` [PATCH 6/7] [pre-commit] Make gdb/stubs codespell-clean Tom de Vries
@ 2026-03-10  9:18 ` Tom de Vries
  2026-03-24 15:37 ` [PING][PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
  2026-04-10 12:38 ` Tom de Vries
  8 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-10  9:18 UTC (permalink / raw)
  To: gdb-patches

Fix typos in gdb/doc and replace "SME" with "sme" in
gdb/contrib/codespell-ignore-words.txt, and add "wither" and "stap".
---
 .pre-commit-config.yaml                |  2 +-
 gdb/contrib/codespell-ignore-words.txt |  4 +-
 gdb/doc/gdb.texinfo                    | 58 +++++++++++++++++++-------
 3 files changed, 46 insertions(+), 18 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c936cce67dc..65feb7f239e 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/(stubs|features|nat|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)))/'
+      files: '^(gdbsupport|gdbserver|gdb/(doc|stubs|features|nat|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/codespell-ignore-words.txt b/gdb/contrib/codespell-ignore-words.txt
index b6f80f3ce52..0594fc39a45 100644
--- a/gdb/contrib/codespell-ignore-words.txt
+++ b/gdb/contrib/codespell-ignore-words.txt
@@ -1,6 +1,8 @@
 configury
-SME
+sme
 Synopsys
 aranges
 fpr
 parm
+wither
+stap
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 63f6fe39a55..09ee15f483a 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -384,6 +384,7 @@ or your friends (or enemies, to be evenhanded) have been unfairly
 omitted from this list, we would like to add your names!
 @end quotation
 
+@c codespell:ignore-begin
 So that they may not regard their many labors as thankless, we
 particularly thank those who shepherded @value{GDBN} through major
 releases:
@@ -562,6 +563,7 @@ Stafford Horne.
 Weimin Pan, David Faust and Jose E. Marchesi contributed support for
 the Linux kernel BPF virtual architecture.  This work was sponsored by
 Oracle.
+@c codespell:ignore-end
 
 @node Sample Session
 @chapter A Sample @value{GDBN} Session
@@ -4978,11 +4980,14 @@ language of the breakpoint's function, other values mean to use
 the manually specified language (see @ref{Manually, ,Set Language Manually}).
 
 The syntax of the regular expression is the standard one used with tools
-like @file{grep}.  Note that this is different from the syntax used by
+like @file{grep}.
+@c codespell:ignore-begin
+Note that this is different from the syntax used by
 shells, so for instance @code{foo*} matches all functions that include
-an @code{fo} followed by zero or more @code{o}s.  There is an implicit
-@code{.*} leading and trailing the regular expression you supply, so to
-match only functions that begin with @code{foo}, use @code{^foo}.
+an @code{fo} followed by zero or more @code{o}s.
+@c codespell:ignore-end
+There is an implicit @code{.*} leading and trailing the regular expression you
+supply, so to match only functions that begin with @code{foo}, use @code{^foo}.
 
 @cindex non-member C@t{++} functions, set breakpoint in
 When debugging C@t{++} programs, @code{rbreak} is useful for setting
@@ -9989,7 +9994,9 @@ regular expression.
 @table @code
 @kindex search
 @kindex forward-search
+@c codespell:ignore-begin
 @kindex fo @r{(@code{forward-search})}
+@c codespell:ignore-end
 @cindex @code{$_} and commands that search source files
 @item forward-search @var{regexp}
 @itemx search @var{regexp}
@@ -9997,8 +10004,11 @@ The command @samp{forward-search @var{regexp}} checks each line,
 starting with the one following the last line listed, for a match for
 @var{regexp}.  It lists the line that is found and saves it in the
 convenience variable @code{$_} (@pxref{Convenience Vars, ,Convenience
-Variables}).  You can use the synonym @samp{search @var{regexp}}
-or abbreviate the command name as @code{fo}.
+Variables}).
+@c codespell:ignore-begin
+You can use the synonym @samp{search @var{regexp}} or abbreviate the command
+name as @code{fo}.
+@c codespell:ignore-end
 
 @kindex reverse-search
 @item reverse-search @var{regexp}
@@ -27272,7 +27282,7 @@ exception.
 When IBT is enabled, the CPU implements a state machine that tracks
 indirect @code{JMP} and @code{CALL} instructions.  The state machine can
 be either IDLE or WAIT_FOR_ENDBRANCH.  When a @code{JMP} or @code{CALL} is
-executed the state machine chages to the WAIT_FOR_ENDBRANCH state.  In
+executed the state machine changes to the WAIT_FOR_ENDBRANCH state.  In
 WAIT_FOR_ENDBRANCH state the next instruction in the program stream
 must be an @code{ENDBR} instruction, otherwise the processor signals a
 control protection exception.  After executing a @code{ENDBR} instruction
@@ -28386,7 +28396,7 @@ palette.  Integers 16-255 are the indexes into xterm extended 256-color palette
 dependent and sometimes can be changed with OSC 4 sequences, e.g.
 "\033]4;1;rgb:00/FF/00\033\\". A hexadecimal 24-bit TrueColor is specified in
 the format @samp{#RRGGBB} where RR, GG and BB are the 2-digit hexadecimal
-integers specifiing the intensity of the red, green and blue color components,
+integers specifying the intensity of the red, green and blue color components,
 respectively.
 
 It is the responsibility of the user to verify that the terminal supports
@@ -34238,12 +34248,14 @@ The corresponding @value{GDBN} command is @samp{cd}.
 
 @subsubheading Example
 
+@c codespell:ignore-begin
 @smallexample
 (gdb)
 -environment-cd /kwikemart/marge/ezannoni/flathead-dev/devo/gdb
 ^done
 (gdb)
 @end smallexample
+@c codespell:ignore-end
 
 
 @findex -environment-directory
@@ -34278,6 +34290,7 @@ The corresponding @value{GDBN} command is @samp{dir}.
 
 @subsubheading Example
 
+@c codespell:ignore-begin
 @smallexample
 (gdb)
 -environment-directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb
@@ -34293,6 +34306,7 @@ The corresponding @value{GDBN} command is @samp{dir}.
 ^done,source-path="$cdir:$cwd"
 (gdb)
 @end smallexample
+@c codespell:ignore-end
 
 
 @findex -environment-path
@@ -34329,6 +34343,7 @@ The corresponding @value{GDBN} command is @samp{path}.
 
 @subsubheading Example
 
+@c codespell:ignore-begin
 @smallexample
 (gdb)
 -environment-path
@@ -34341,6 +34356,7 @@ The corresponding @value{GDBN} command is @samp{path}.
 ^done,path="/usr/local/bin:/usr/bin"
 (gdb)
 @end smallexample
+@c codespell:ignore-end
 
 
 @findex -environment-pwd
@@ -34360,12 +34376,14 @@ The corresponding @value{GDBN} command is @samp{pwd}.
 
 @subsubheading Example
 
+@c codespell:ignore-begin
 @smallexample
 (gdb)
 -environment-pwd
 ^done,cwd="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb"
 (gdb)
 @end smallexample
+@c codespell:ignore-end
 
 @c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 @node GDB/MI Thread Commands
@@ -38280,12 +38298,14 @@ The corresponding @value{GDBN} command is @samp{file}.
 
 @subsubheading Example
 
+@c codespell:ignore-begin
 @smallexample
 (gdb)
 -file-exec-and-symbols /kwikemart/marge/ezannoni/TRUNK/mbx/hello.mbx
 ^done
 (gdb)
 @end smallexample
+@c codespell:ignore-end
 
 
 @findex -file-exec-file
@@ -38309,12 +38329,14 @@ The corresponding @value{GDBN} command is @samp{exec-file}.
 
 @subsubheading Example
 
+@c codespell:ignore-begin
 @smallexample
 (gdb)
 -file-exec-file /kwikemart/marge/ezannoni/TRUNK/mbx/hello.mbx
 ^done
 (gdb)
 @end smallexample
+@c codespell:ignore-end
 
 
 @ignore
@@ -38586,12 +38608,14 @@ The corresponding @value{GDBN} command is @samp{symbol-file}.
 
 @subsubheading Example
 
+@c codespell:ignore-begin
 @smallexample
 (gdb)
 -file-symbol-file /kwikemart/marge/ezannoni/TRUNK/mbx/hello.mbx
 ^done
 (gdb)
 @end smallexample
+@c codespell:ignore-end
 
 @ignore
 @c %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -41886,11 +41910,13 @@ This command is useful for debugging the Agent Expression mechanism
 (@pxref{Agent Expressions}).  The @samp{agent} version produces an
 expression useful for data collection, such as by tracepoints, while
 @samp{maint agent-eval} produces an expression that evaluates directly
-to a result.  For instance, a collection expression for @code{globa +
-globb} will include bytecodes to record four bytes of memory at each
-of the addresses of @code{globa} and @code{globb}, while discarding
-the result of the addition, while an evaluation expression will do the
-addition and return the sum.
+to a result.
+@c codespell:ignore-begin
+For instance, a collection expression for @code{globa + globb} will include
+bytecodes to record four bytes of memory at each of the addresses of
+@code{globa} and @code{globb}, while discarding the result of the addition,
+while an evaluation expression will do the addition and return the sum.
+@c codespell:ignore-end
 If @code{-at} is given, generate remote agent bytecode for all the
 addresses to which @var{linespec} resolves (@pxref{Linespec
 Locations}).
@@ -43181,7 +43207,7 @@ The two-digit @var{checksum} is computed as the modulo 256 sum of all
 characters between the leading @samp{$} and the trailing @samp{#} (an
 eight bit unsigned checksum).
 
-Implementors should note that prior to @value{GDBN} 5.0 the protocol
+Implementers should note that prior to @value{GDBN} 5.0 the protocol
 specification also included an optional two-digit @var{sequence-id}:
 
 @smallexample
@@ -43226,7 +43252,7 @@ Fields within the packet should be separated using @samp{,} @samp{;} or
 @samp{:}.  Except where otherwise noted all numbers are represented in
 @sc{hex} with leading zeros suppressed.
 
-Implementors should note that prior to @value{GDBN} 5.0, the character
+Implementers should note that prior to @value{GDBN} 5.0, the character
 @samp{:} could not appear as the third character in a packet (as it
 would potentially conflict with the @var{sequence-id}).
 
@@ -45209,7 +45235,7 @@ command (@pxref{Remote Configuration, set remote thread-options}).
 execution.  Invalid commands should be reported using the output
 string.  Before the final result packet, the target may also respond
 with a number of intermediate @samp{O@var{output}} console output
-packets.  @emph{Implementors should note that providing access to a
+packets.  @emph{Implementers should note that providing access to a
 stubs's interpreter may have security implications}.
 
 Reply:
-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PING][PATCH 0/7] [pre-commit] Some codespell fixes
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
                   ` (6 preceding siblings ...)
  2026-03-10  9:18 ` [PATCH 7/7] [pre-commit] Make gdb/doc codespell-clean Tom de Vries
@ 2026-03-24 15:37 ` Tom de Vries
  2026-04-10 12:38 ` Tom de Vries
  8 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-03-24 15:37 UTC (permalink / raw)
  To: gdb-patches

On 3/10/26 10:18 AM, Tom de Vries wrote:
> This series contains some codespell fixes.
> 
> The first patch fixes the codespell:ignore-begin/end to be non-greedy.
> 
> The second patch gets rid of gdb/contrib/setup.cfg.
> 
> The rest of the patches each make one gdb subdir codespell-clean.
> 

Ping.

Thanks,
- Tom

> Tom de Vries (7):
>    [pre-commit] Make codespell:ignore-begin/end non-greedy
>    [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml
>    [pre-commit] Make gdb/contrib codespell-clean
>    [pre-commit] Make gdb/nat codespell-clean
>    [pre-commit] Make gdb/features codespell-clean
>    [pre-commit] Make gdb/stubs codespell-clean
>    [pre-commit] Make gdb/doc codespell-clean
> 
>   .pre-commit-config.yaml                 |  6 +--
>   gdb/contrib/ari/update-web-ari.sh       |  4 +-
>   gdb/contrib/codespell-ignore-words.txt  |  6 ++-
>   gdb/contrib/dwarf-to-dwarf-assembler.py |  2 +-
>   gdb/contrib/setup.cfg                   | 13 ------
>   gdb/doc/gdb.texinfo                     | 58 ++++++++++++++++++-------
>   gdb/features/alpha-core.xml             |  2 +
>   gdb/features/arc/v2-core.xml            |  2 +-
>   gdb/features/i386/32bit-sse.xml         |  2 +
>   gdb/features/i386/64bit-sse.xml         |  2 +
>   gdb/features/or1k-core.xml              |  2 +
>   gdb/features/rs6000/powerpc-602.xml     |  2 +
>   gdb/features/rx.xml                     |  2 +
>   gdb/nat/linux-btrace.c                  |  2 +-
>   gdb/pyproject.toml                      | 14 ++++++
>   gdb/stubs/i386-stub.c                   |  2 +-
>   gdb/stubs/ia64vms-stub.c                |  4 +-
>   gdb/stubs/m32r-stub.c                   |  4 +-
>   gdb/stubs/m68k-stub.c                   |  4 +-
>   gdb/stubs/sh-stub.c                     |  2 +-
>   gdb/stubs/sparc-stub.c                  |  2 +-
>   gdb/stubs/z80-stub.c                    |  9 ++--
>   pyproject.toml                          |  0
>   23 files changed, 95 insertions(+), 51 deletions(-)
>   delete mode 100644 gdb/contrib/setup.cfg
>   create mode 100644 pyproject.toml
> 
> 
> base-commit: 55c46eed2c8a132df2cd98cd0115ad6862604ca2


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PING][PATCH 0/7] [pre-commit] Some codespell fixes
  2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
                   ` (7 preceding siblings ...)
  2026-03-24 15:37 ` [PING][PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
@ 2026-04-10 12:38 ` Tom de Vries
  2026-04-24 13:20   ` [PING^2][PATCH " Tom de Vries
  8 siblings, 1 reply; 12+ messages in thread
From: Tom de Vries @ 2026-04-10 12:38 UTC (permalink / raw)
  To: gdb-patches

On 3/10/26 10:18 AM, Tom de Vries wrote:
> This series contains some codespell fixes.
> 
> The first patch fixes the codespell:ignore-begin/end to be non-greedy.
> 
> The second patch gets rid of gdb/contrib/setup.cfg.
> 
> The rest of the patches each make one gdb subdir codespell-clean.
> 
> Tom de Vries (7):
>    [pre-commit] Make codespell:ignore-begin/end non-greedy
>    [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml
>    [pre-commit] Make gdb/contrib codespell-clean
>    [pre-commit] Make gdb/nat codespell-clean
>    [pre-commit] Make gdb/features codespell-clean
>    [pre-commit] Make gdb/stubs codespell-clean
>    [pre-commit] Make gdb/doc codespell-clean
> 
>   .pre-commit-config.yaml                 |  6 +--
>   gdb/contrib/ari/update-web-ari.sh       |  4 +-
>   gdb/contrib/codespell-ignore-words.txt  |  6 ++-
>   gdb/contrib/dwarf-to-dwarf-assembler.py |  2 +-
>   gdb/contrib/setup.cfg                   | 13 ------
>   gdb/doc/gdb.texinfo                     | 58 ++++++++++++++++++-------
>   gdb/features/alpha-core.xml             |  2 +
>   gdb/features/arc/v2-core.xml            |  2 +-
>   gdb/features/i386/32bit-sse.xml         |  2 +
>   gdb/features/i386/64bit-sse.xml         |  2 +
>   gdb/features/or1k-core.xml              |  2 +
>   gdb/features/rs6000/powerpc-602.xml     |  2 +
>   gdb/features/rx.xml                     |  2 +
>   gdb/nat/linux-btrace.c                  |  2 +-
>   gdb/pyproject.toml                      | 14 ++++++
>   gdb/stubs/i386-stub.c                   |  2 +-
>   gdb/stubs/ia64vms-stub.c                |  4 +-
>   gdb/stubs/m32r-stub.c                   |  4 +-
>   gdb/stubs/m68k-stub.c                   |  4 +-
>   gdb/stubs/sh-stub.c                     |  2 +-
>   gdb/stubs/sparc-stub.c                  |  2 +-
>   gdb/stubs/z80-stub.c                    |  9 ++--
>   pyproject.toml                          |  0
>   23 files changed, 95 insertions(+), 51 deletions(-)
>   delete mode 100644 gdb/contrib/setup.cfg
>   create mode 100644 pyproject.toml
> 
> 
> base-commit: 55c46eed2c8a132df2cd98cd0115ad6862604ca2


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PING^2][PATCH 0/7] [pre-commit] Some codespell fixes
  2026-04-10 12:38 ` Tom de Vries
@ 2026-04-24 13:20   ` Tom de Vries
  2026-06-01 12:34     ` Tom de Vries
  0 siblings, 1 reply; 12+ messages in thread
From: Tom de Vries @ 2026-04-24 13:20 UTC (permalink / raw)
  To: gdb-patches

On 4/10/26 2:38 PM, Tom de Vries wrote:
> On 3/10/26 10:18 AM, Tom de Vries wrote:
>> This series contains some codespell fixes.
>>
>> The first patch fixes the codespell:ignore-begin/end to be non-greedy.
>>
>> The second patch gets rid of gdb/contrib/setup.cfg.
>>
>> The rest of the patches each make one gdb subdir codespell-clean.
>>


Ping^2.

Thanks,
- Tom

>> Tom de Vries (7):
>>    [pre-commit] Make codespell:ignore-begin/end non-greedy
>>    [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml
>>    [pre-commit] Make gdb/contrib codespell-clean
>>    [pre-commit] Make gdb/nat codespell-clean
>>    [pre-commit] Make gdb/features codespell-clean
>>    [pre-commit] Make gdb/stubs codespell-clean
>>    [pre-commit] Make gdb/doc codespell-clean
>>
>>   .pre-commit-config.yaml                 |  6 +--
>>   gdb/contrib/ari/update-web-ari.sh       |  4 +-
>>   gdb/contrib/codespell-ignore-words.txt  |  6 ++-
>>   gdb/contrib/dwarf-to-dwarf-assembler.py |  2 +-
>>   gdb/contrib/setup.cfg                   | 13 ------
>>   gdb/doc/gdb.texinfo                     | 58 ++++++++++++++++++-------
>>   gdb/features/alpha-core.xml             |  2 +
>>   gdb/features/arc/v2-core.xml            |  2 +-
>>   gdb/features/i386/32bit-sse.xml         |  2 +
>>   gdb/features/i386/64bit-sse.xml         |  2 +
>>   gdb/features/or1k-core.xml              |  2 +
>>   gdb/features/rs6000/powerpc-602.xml     |  2 +
>>   gdb/features/rx.xml                     |  2 +
>>   gdb/nat/linux-btrace.c                  |  2 +-
>>   gdb/pyproject.toml                      | 14 ++++++
>>   gdb/stubs/i386-stub.c                   |  2 +-
>>   gdb/stubs/ia64vms-stub.c                |  4 +-
>>   gdb/stubs/m32r-stub.c                   |  4 +-
>>   gdb/stubs/m68k-stub.c                   |  4 +-
>>   gdb/stubs/sh-stub.c                     |  2 +-
>>   gdb/stubs/sparc-stub.c                  |  2 +-
>>   gdb/stubs/z80-stub.c                    |  9 ++--
>>   pyproject.toml                          |  0
>>   23 files changed, 95 insertions(+), 51 deletions(-)
>>   delete mode 100644 gdb/contrib/setup.cfg
>>   create mode 100644 pyproject.toml
>>
>>
>> base-commit: 55c46eed2c8a132df2cd98cd0115ad6862604ca2
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PING^2][PATCH 0/7] [pre-commit] Some codespell fixes
  2026-04-24 13:20   ` [PING^2][PATCH " Tom de Vries
@ 2026-06-01 12:34     ` Tom de Vries
  0 siblings, 0 replies; 12+ messages in thread
From: Tom de Vries @ 2026-06-01 12:34 UTC (permalink / raw)
  To: gdb-patches

On 4/24/26 3:20 PM, Tom de Vries wrote:
> On 4/10/26 2:38 PM, Tom de Vries wrote:
>> On 3/10/26 10:18 AM, Tom de Vries wrote:
>>> This series contains some codespell fixes.
>>>
>>> The first patch fixes the codespell:ignore-begin/end to be non-greedy.
>>>
>>> The second patch gets rid of gdb/contrib/setup.cfg.
>>>
>>> The rest of the patches each make one gdb subdir codespell-clean.
>>>
> 
> 
> Ping^2.
> 

I've asked Claude Code to review this patch series.

It found a problem in the second patch: it added an empty pyproject.toml.

I've removed this, and pushed the series.

Thanks,
- Tom

> Thanks,
> - Tom
> 
>>> Tom de Vries (7):
>>>    [pre-commit] Make codespell:ignore-begin/end non-greedy
>>>    [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml
>>>    [pre-commit] Make gdb/contrib codespell-clean
>>>    [pre-commit] Make gdb/nat codespell-clean
>>>    [pre-commit] Make gdb/features codespell-clean
>>>    [pre-commit] Make gdb/stubs codespell-clean
>>>    [pre-commit] Make gdb/doc codespell-clean
>>>
>>>   .pre-commit-config.yaml                 |  6 +--
>>>   gdb/contrib/ari/update-web-ari.sh       |  4 +-
>>>   gdb/contrib/codespell-ignore-words.txt  |  6 ++-
>>>   gdb/contrib/dwarf-to-dwarf-assembler.py |  2 +-
>>>   gdb/contrib/setup.cfg                   | 13 ------
>>>   gdb/doc/gdb.texinfo                     | 58 ++++++++++++++++++-------
>>>   gdb/features/alpha-core.xml             |  2 +
>>>   gdb/features/arc/v2-core.xml            |  2 +-
>>>   gdb/features/i386/32bit-sse.xml         |  2 +
>>>   gdb/features/i386/64bit-sse.xml         |  2 +
>>>   gdb/features/or1k-core.xml              |  2 +
>>>   gdb/features/rs6000/powerpc-602.xml     |  2 +
>>>   gdb/features/rx.xml                     |  2 +
>>>   gdb/nat/linux-btrace.c                  |  2 +-
>>>   gdb/pyproject.toml                      | 14 ++++++
>>>   gdb/stubs/i386-stub.c                   |  2 +-
>>>   gdb/stubs/ia64vms-stub.c                |  4 +-
>>>   gdb/stubs/m32r-stub.c                   |  4 +-
>>>   gdb/stubs/m68k-stub.c                   |  4 +-
>>>   gdb/stubs/sh-stub.c                     |  2 +-
>>>   gdb/stubs/sparc-stub.c                  |  2 +-
>>>   gdb/stubs/z80-stub.c                    |  9 ++--
>>>   pyproject.toml                          |  0
>>>   23 files changed, 95 insertions(+), 51 deletions(-)
>>>   delete mode 100644 gdb/contrib/setup.cfg
>>>   create mode 100644 pyproject.toml
>>>
>>>
>>> base-commit: 55c46eed2c8a132df2cd98cd0115ad6862604ca2
>>
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-06-01 12:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-10  9:18 [PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
2026-03-10  9:18 ` [PATCH 1/7] [pre-commit] Make codespell:ignore-begin/end non-greedy Tom de Vries
2026-03-10  9:18 ` [PATCH 2/7] [pre-commit] Move gdb/contrib/setup.cfg to gdb/pyproject.toml Tom de Vries
2026-03-10  9:18 ` [PATCH 3/7] [pre-commit] Make gdb/contrib codespell-clean Tom de Vries
2026-03-10  9:18 ` [PATCH 4/7] [pre-commit] Make gdb/nat codespell-clean Tom de Vries
2026-03-10  9:18 ` [PATCH 5/7] [pre-commit] Make gdb/features codespell-clean Tom de Vries
2026-03-10  9:18 ` [PATCH 6/7] [pre-commit] Make gdb/stubs codespell-clean Tom de Vries
2026-03-10  9:18 ` [PATCH 7/7] [pre-commit] Make gdb/doc codespell-clean Tom de Vries
2026-03-24 15:37 ` [PING][PATCH 0/7] [pre-commit] Some codespell fixes Tom de Vries
2026-04-10 12:38 ` Tom de Vries
2026-04-24 13:20   ` [PING^2][PATCH " Tom de Vries
2026-06-01 12:34     ` Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox