]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite, gdbserver] Fix typos
authorTom de Vries <tdevries@suse.de>
Wed, 24 Sep 2025 06:47:15 +0000 (08:47 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 24 Sep 2025 06:47:15 +0000 (08:47 +0200)
Codespell noticed two new typos:
...
$ pre-commit run --all-files codespell
codespell................................................................Failed
- hook id: codespell
- exit code: 65

gdbserver/server.cc:4255: errror ==> error
gdb/testsuite/gdb.replay/missing-thread.exp:87: Whn ==> When
...

Fix these.

gdb/testsuite/gdb.replay/missing-thread.exp
gdbserver/server.cc

index 15a8aaed2e46257b1592f61a124dc02abb2334cd..6ee2e4cff14e259715be106de6042126f7b0fa1c 100644 (file)
@@ -84,7 +84,7 @@ proc_with_prefix record_initial_logfile { log_filename } {
 # the reply from the remote that indicates the thread list.  It is expected
 # that the thread list will contain two threads.
 #
-# Whn DROP_BOTH is true then both threads will be removed from the modified
+# When DROP_BOTH is true then both threads will be removed from the modified
 # line.  Otherwise, only the second thread is removed.
 proc update_replay_log { in_filename out_filename drop_both } {
     # Read IN_FILENAME into a list.
index 8dc1f498d4f0a4d7f000f6392b6d423d3cc0e70e..5b40600f457c6427b2e3b541f9d45e870069693d 100644 (file)
@@ -4252,7 +4252,7 @@ captured_main (int argc, char *argv[])
              optind--;
 
              /* For required arguments, if we don't have an argument, then
-                this is an errror, set OPTC to reflect this.  */
+                this is an error, set OPTC to reflect this.  */
              if (longopts[longindex].has_arg == required_argument)
                optc = ':';
            }