Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 2/2] [gdb] Fix some typos
Date: Fri,  4 Sep 2026 19:39:33 +0200	[thread overview]
Message-ID: <20260904173935.16461-2-tdevries@suse.de> (raw)
In-Reply-To: <20260904173935.16461-1-tdevries@suse.de>

Detect typos in words containing dashes by enabling the regex field in the
codespell configuration in pyproject, and dropping the dash.

Fix some typos manually (not using codespell -w).

This also triggers codespell to work on the rules in
gdb/contrib/codespell-dictionary.txt, so skip it.
---
 gdb/doc/gdb.texinfo                          | 2 +-
 gdb/doc/guile.texi                           | 2 +-
 gdb/pyproject.toml                           | 2 ++
 gdb/testsuite/gdb.base/charset.exp           | 2 +-
 gdb/testsuite/gdb.base/source-nofile.gdb     | 2 +-
 gdb/testsuite/gdb.base/source.exp            | 6 +++---
 gdb/testsuite/gdb.cp/local-static.exp        | 2 +-
 gdb/testsuite/gdb.mi/mi-dprintf-modified.exp | 2 +-
 gdb/testsuite/gdb.opt/break-on-_exit.exp     | 2 +-
 9 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 0030698dcee..c7cfca13233 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -3827,7 +3827,7 @@ program information from the perspective of the current thread.
 
 @cindex @code{New} @var{systag} message
 @cindex thread identifier (system)
-@c FIXME-implementors!! It would be more helpful if the [New...] message
+@c FIXME-implementers!! It would be more helpful if the [New...] message
 @c included GDB's numeric thread handle, so you could just go to that
 @c thread without first checking `info threads'.
 Whenever @value{GDBN} detects a new thread in your program, it displays
diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi
index 03f1008d20f..95f83802f23 100644
--- a/gdb/doc/guile.texi
+++ b/gdb/doc/guile.texi
@@ -3340,7 +3340,7 @@ Return @code{#t} if @var{object} is an object of type @code{<gdb:lazy-string>}.
 Otherwise return @code{#f}.
 @end deffn
 
-@deffn {Scheme Procedure} lazy-string-address lazy-sring
+@deffn {Scheme Procedure} lazy-string-address lazy-string
 Return the address of @var{lazy-string}.
 @end deffn
 
diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml
index 32f14f13f3e..aacb181d807 100644
--- a/gdb/pyproject.toml
+++ b/gdb/pyproject.toml
@@ -72,6 +72,8 @@ skip = [
 'gdb/aclocal.m4',
 'gdbserver/aclocal.m4',
 'gdbsupport/aclocal.m4',
+# Skip codespell files containing typos.
+'gdb/contrib/codespell-dictionary.txt',
 # TODO:
 # codespell:ignore-begin.  Ignore slite and endianity.
 'gdb/testsuite/config/slite.exp',
diff --git a/gdb/testsuite/gdb.base/charset.exp b/gdb/testsuite/gdb.base/charset.exp
index 13e874ec955..9995021dabc 100644
--- a/gdb/testsuite/gdb.base/charset.exp
+++ b/gdb/testsuite/gdb.base/charset.exp
@@ -522,7 +522,7 @@ foreach val {0 1 2 3 4 5 6 7 8 9 a b c d e f} {
 # Tests for wide- or unicode- strings.  L is the prefix letter to use,
 # either "L" (for wide strings), "u" (for UTF-16), or "U" (for UTF-32).
 # NAME is used in the test names and should be related to the prefix
-# letter in some easy-to-undestand way.
+# letter in some easy-to-understand way.
 proc test_wide_or_unicode {L name} {
     gdb_test "print $L\"ab\" $L\"c\"" " = $L\"abc\"" \
       "basic $name string concatenation"
diff --git a/gdb/testsuite/gdb.base/source-nofile.gdb b/gdb/testsuite/gdb.base/source-nofile.gdb
index 58ec3b0f64b..242db9a86c5 100644
--- a/gdb/testsuite/gdb.base/source-nofile.gdb
+++ b/gdb/testsuite/gdb.base/source-nofile.gdb
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-source for-sure-nonexistant-file
+source for-sure-nonexistent-file
 
 # Just print an message to confirm that failing to source the file
 # did not cause this script to abort.
diff --git a/gdb/testsuite/gdb.base/source.exp b/gdb/testsuite/gdb.base/source.exp
index 04e13e8ec96..9595041b408 100644
--- a/gdb/testsuite/gdb.base/source.exp
+++ b/gdb/testsuite/gdb.base/source.exp
@@ -56,11 +56,11 @@ gdb_test "source -v -s ./source-test.gdb" \
 # Test sourcing a non-existent file, both when the source command
 # comes from the a command entered at the GDB prompt, and when
 # it comes from a script being sourced.
-gdb_test "source for-sure-nonexistant-file" \
-	 "for-sure-nonexistant-file: No such file or directory\."
+gdb_test "source for-sure-nonexistent-file" \
+	 "for-sure-nonexistent-file: No such file or directory\."
 
 gdb_test "source source-nofile.gdb" \
-	 "warning: for-sure-nonexistant-file: No such file or directory\.\[\r\n\]*source error not fatal"
+	 "warning: for-sure-nonexistent-file: No such file or directory\.\[\r\n\]*source error not fatal"
 
 
 # Test commands that error out in sourced files, including in nested sourced
diff --git a/gdb/testsuite/gdb.cp/local-static.exp b/gdb/testsuite/gdb.cp/local-static.exp
index ca9fd7b911e..3ccb721eb8c 100644
--- a/gdb/testsuite/gdb.cp/local-static.exp
+++ b/gdb/testsuite/gdb.cp/local-static.exp
@@ -250,7 +250,7 @@ proc do_test {lang} {
     }
 
     # Now run to each function, and print its variables using the
-    # localy-visible name.
+    # locally-visible name.
     foreach scope_line $scopes_list {
 	set scope [lindex $scope_line 0]
 	set var_prefix [lindex $scope_line 1]
diff --git a/gdb/testsuite/gdb.mi/mi-dprintf-modified.exp b/gdb/testsuite/gdb.mi/mi-dprintf-modified.exp
index 726a71a6c10..641c4c552ae 100644
--- a/gdb/testsuite/gdb.mi/mi-dprintf-modified.exp
+++ b/gdb/testsuite/gdb.mi/mi-dprintf-modified.exp
@@ -18,7 +18,7 @@
 #
 # GDB use to emit a 'breakpoint-modified' dprintf breakpoints each
 # time the dprintf_breakpoint::re_set function was called as this
-# would re-cacluate the dprintf command string, even though in most
+# would re-calculate the dprintf command string, even though in most
 # cases the calculated string was no different from the previous
 # value.
 #
diff --git a/gdb/testsuite/gdb.opt/break-on-_exit.exp b/gdb/testsuite/gdb.opt/break-on-_exit.exp
index 9caa54e4ad8..7f1e2ada240 100644
--- a/gdb/testsuite/gdb.opt/break-on-_exit.exp
+++ b/gdb/testsuite/gdb.opt/break-on-_exit.exp
@@ -28,7 +28,7 @@
 # We may get the required setup in case of a libc with missing separate
 # debuginfo, but we want the same effect if that debuginfo is installed.
 #
-# So, we use -readnever to read minimal symbols, but not non-miminal symbols.
+# So, we use -readnever to read minimal symbols, but not non-minimal symbols.
 #
 # Because the code at _exit may be and usually is optimized, the test is in
 # the gdb.opt directory.
-- 
2.51.0


  reply	other threads:[~2026-09-04 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-04 17:39 [PATCH 1/2] [gdb] Document word regexp choice in pyproject.toml Tom de Vries
2026-09-04 17:39 ` Tom de Vries [this message]
2026-09-04 19:45   ` [PATCH 2/2] [gdb] Fix some typos Eli Zaretskii
2026-09-09 11:49     ` Tom de Vries

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260904173935.16461-2-tdevries@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox