From a7a38dba7f4fbd9e9c8dd4e739d42ef8a36fb49a Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 27 Mar 2025 17:53:52 +0100 Subject: [PATCH] [gdb/contrib] Drop two words from codespell-ignore-words.txt Tom Tromey mentioned [1] that the words "invokable" and "useable" present in codespell-ignore-words.txt should be dropped. Do so and fix the following typos: ... $ codespell --config gdbsupport/setup.cfg gdbsupport gdbsupport/common-debug.h:218: invokable ==> invocable gdbsupport/event-loop.cc:84: useable ==> usable ... Approved-By: Tom Tromey [1] https://sourceware.org/pipermail/gdb-patches/2025-March/216584.html --- gdb/contrib/codespell-ignore-words.txt | 2 -- gdbsupport/common-debug.h | 2 +- gdbsupport/event-loop.cc | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gdb/contrib/codespell-ignore-words.txt b/gdb/contrib/codespell-ignore-words.txt index 2b9d878c853..2d6e13af683 100644 --- a/gdb/contrib/codespell-ignore-words.txt +++ b/gdb/contrib/codespell-ignore-words.txt @@ -1,4 +1,2 @@ configury -invokable -useable SME diff --git a/gdbsupport/common-debug.h b/gdbsupport/common-debug.h index f7c8d8190af..547ea4769de 100644 --- a/gdbsupport/common-debug.h +++ b/gdbsupport/common-debug.h @@ -215,7 +215,7 @@ private: bool m_disabled = false; }; -/* Implementation of is_debug_enabled when PT is an invokable type. */ +/* Implementation of is_debug_enabled when PT is an invocable type. */ template inline bool diff --git a/gdbsupport/event-loop.cc b/gdbsupport/event-loop.cc index 4f7ad36d8d6..64cdb1f42da 100644 --- a/gdbsupport/event-loop.cc +++ b/gdbsupport/event-loop.cc @@ -81,7 +81,7 @@ struct file_handler #ifdef HAVE_POLL /* Do we use poll or select? Some systems have poll, but then it's - not useable with all kinds of files. We probe that whenever a new + not usable with all kinds of files. We probe that whenever a new file handler is added. */ static bool use_poll = true; #endif -- 2.39.5