[binutils-gdb] [gdb/cli] Fix typo in cli-dump.c

Tom de Vries vries@sourceware.org
Thu Apr 10 16:42:04 GMT 2025


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

commit fd152d90be8d8d901f601ca99e253d39bf220011
Author: Tom de Vries <tdevries@suse.de>
Date:   Thu Apr 10 18:42:06 2025 +0200

    [gdb/cli] Fix typo in cli-dump.c
    
    Fix the folowing typo:
    ...
    $ codespell --config gdb/contrib/setup.cfg gdb/cli
    gdb/cli/cli-dump.c:400: useable ==> usable
    ...
    and add gdb/cli to the pre-commit codespell configuration.
    
    Approved-By: Tom Tromey <tom@tromey.com>

Diff:
---
 .pre-commit-config.yaml | 2 +-
 gdb/cli/cli-dump.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ca4650ffc28..f432d51de0e 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|config|unittests))/'
+      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|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;


More information about the Binutils-cvs mailing list