[binutils-gdb] [pre-commit] Make gdb/nat codespell-clean

Tom de Vries vries@sourceware.org
Mon Jun 1 12:34:12 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9bd9eb86ca46ddda552f34c153b2a052f491342e

commit 9bd9eb86ca46ddda552f34c153b2a052f491342e
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Jun 1 14:33:48 2026 +0200

    [pre-commit] Make gdb/nat codespell-clean
    
    Fix typos in gdb/nat, and add "fpr" to gdb/contrib/codespell-ignore-words.txt.

Diff:
---
 .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 aa41d17b6ee..12b9561e870 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 046372da745..2e0c2eedfbb 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)


More information about the Binutils-cvs mailing list