diff options
author | Tom de Vries <tdevries@suse.de> | 2025-04-10 18:42:06 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-04-10 18:42:06 +0200 |
commit | fd152d90be8d8d901f601ca99e253d39bf220011 (patch) | |
tree | f78af0df3bbe4330ce82d90993a78ec8831bde2e | |
parent | 99d0bac09bac091b2b9ea8ae634361008b08033b (diff) | |
download | binutils-fd152d90be8d8d901f601ca99e253d39bf220011.zip binutils-fd152d90be8d8d901f601ca99e253d39bf220011.tar.gz binutils-fd152d90be8d8d901f601ca99e253d39bf220011.tar.bz2 |
[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>
-rw-r--r-- | .pre-commit-config.yaml | 2 | ||||
-rw-r--r-- | 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 ca4650f..f432d51 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 0ecc7b0..3055734 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; |