From: Tom de Vries Date: Mon, 1 Jun 2026 12:33:48 +0000 (+0200) Subject: [pre-commit] Make gdb/nat codespell-clean X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=9bd9eb86ca46ddda552f34c153b2a052f491342e;p=thirdparty%2Fbinutils-gdb.git [pre-commit] Make gdb/nat codespell-clean Fix typos in gdb/nat, and add "fpr" to gdb/contrib/codespell-ignore-words.txt. --- 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)