From fd152d90be8d8d901f601ca99e253d39bf220011 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 10 Apr 2025 18:42:06 +0200 Subject: [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 --- .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 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; -- cgit v1.1