[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 aa41d17..12b9561 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml
@@ -71,7 +71,7 @@ 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 c07df0c..c86bd3f 100644 --- a/gdb/contrib/codespell-ignore-words.txt +++ b/gdb/contrib/codespell-ignore-words.txt
@@ -2,3 +2,4 @@ SME Synopsys aranges +fpr
diff --git a/gdb/nat/linux-btrace.c b/gdb/nat/linux-btrace.c index 046372d..2e0c2ee 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)