diff options
Diffstat (limited to 'gdbsupport')
-rw-r--r-- | gdbsupport/common-debug.h | 4 | ||||
-rw-r--r-- | gdbsupport/common-inferior.cc | 2 | ||||
-rw-r--r-- | gdbsupport/common-inferior.h | 2 | ||||
-rw-r--r-- | gdbsupport/event-loop.cc | 2 | ||||
-rw-r--r-- | gdbsupport/gdb_tilde_expand.cc | 4 | ||||
-rw-r--r-- | gdbsupport/setup.cfg | 4 |
6 files changed, 7 insertions, 11 deletions
diff --git a/gdbsupport/common-debug.h b/gdbsupport/common-debug.h index 6c793dc..547ea47 100644 --- a/gdbsupport/common-debug.h +++ b/gdbsupport/common-debug.h @@ -106,7 +106,7 @@ struct scoped_debug_start_end If the FMT format string is non-nullptr, then a `: ` is appended to the messages, followed by the rendering of that format string with ARGS. - The format string is rendered during construction and is re-used as is + The format string is rendered during construction and is reused as is for the message on exit. */ scoped_debug_start_end (PT &debug_enabled, const char *module, @@ -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<typename PT> inline bool diff --git a/gdbsupport/common-inferior.cc b/gdbsupport/common-inferior.cc index 4b86829..d2fd348 100644 --- a/gdbsupport/common-inferior.cc +++ b/gdbsupport/common-inferior.cc @@ -59,7 +59,7 @@ escape_characters (const char *arg, const char *special) #ifdef __MINGW32__ bool quoted = false; - if (strpbrk (argv[i], special)) + if (strpbrk (arg, special) != nullptr) { quoted = true; result += quote; diff --git a/gdbsupport/common-inferior.h b/gdbsupport/common-inferior.h index 3e8ec10..a277e1b 100644 --- a/gdbsupport/common-inferior.h +++ b/gdbsupport/common-inferior.h @@ -54,7 +54,7 @@ extern bool startup_with_shell; /* Combine elements of ARGV into a single string, placing a single whitespace character between each element. When ESCAPE_SHELL_CHAR is - true then any special shell characters in elemets of ARGV will be + true then any special shell characters in elements of ARGV will be escaped. When ESCAPE_SHELL_CHAR is false only the characters that GDB sees as special (quotes and whitespace) are escaped. */ extern std::string diff --git a/gdbsupport/event-loop.cc b/gdbsupport/event-loop.cc index 4f7ad36..64cdb1f 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 diff --git a/gdbsupport/gdb_tilde_expand.cc b/gdbsupport/gdb_tilde_expand.cc index 4a0a573..f009979 100644 --- a/gdbsupport/gdb_tilde_expand.cc +++ b/gdbsupport/gdb_tilde_expand.cc @@ -51,7 +51,7 @@ public: } /* Return the GL_PATHC component of M_GLOB. */ - int pathc () const + int pathc () const /* codespell:ignore */ { return m_glob.gl_pathc; } @@ -96,6 +96,6 @@ gdb_tilde_expand (const char *dir) const gdb_glob glob (to_expand.c_str (), GLOB_TILDE_CHECK, nullptr); - gdb_assert (glob.pathc () == 1); + gdb_assert (glob.pathc () == 1); /* codespell:ignore */ return std::string (glob.pathv ()[0]) + remainder; } diff --git a/gdbsupport/setup.cfg b/gdbsupport/setup.cfg deleted file mode 100644 index e3e9298..0000000 --- a/gdbsupport/setup.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[codespell] -# Skip ChangeLogs and generated files. -skip = ChangeLog*,Makefile.in,configure -ignore-words = gdb/contrib/codespell-ignore-words.txt |