Make gdb/cli codespell-clean

Message ID 20250410150212.689434-1-tromey@adacore.com
State New
Headers
Series Make gdb/cli codespell-clean |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom Tromey April 10, 2025, 3:02 p.m. UTC
  This small fix makes gdb/cli codespell-clean.
---
 .pre-commit-config.yaml | 2 +-
 gdb/cli/cli-dump.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


base-commit: d1458933830456e54223d9fc61f0d9b3a19256f5
  

Patch

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 488e7812f94..54dddae54a7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -69,7 +69,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))/'
+      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|cli))/'
       args: [--config, gdb/contrib/setup.cfg]
   - repo: local
     hooks:
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 0ecc7b0db6a..3055734761b 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -397,7 +397,7 @@  restore_one_section (bfd *ibfd, asection *isec,
   if (sec_end <= load_start
       || (load_end > 0 && sec_start >= load_end))
     {
-      /* No, no useable data in this section.  */
+      /* No, no usable data in this section.  */
       gdb_printf (_("skipping section %s...\n"), 
 		  bfd_section_name (isec));
       return;