[gdb/testsuite, gdbserver] Fix typos

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.
This commit is contained in:
Tom de Vries
2025-09-24 08:47:15 +02:00
parent f6a04a1636
commit c0d4514f77
2 changed files with 2 additions and 2 deletions

View 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 # the reply from the remote that indicates the thread list. It is expected
# that the thread list will contain two threads. # 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. # line. Otherwise, only the second thread is removed.
proc update_replay_log { in_filename out_filename drop_both } { proc update_replay_log { in_filename out_filename drop_both } {
# Read IN_FILENAME into a list. # Read IN_FILENAME into a list.

View File

@@ -4252,7 +4252,7 @@ captured_main (int argc, char *argv[])
optind--; optind--;
/* For required arguments, if we don't have an argument, then /* 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) if (longopts[longindex].has_arg == required_argument)
optc = ':'; optc = ':';
} }