# argument. If RE_ESC_LIST is not given then ARGLIST is reused, which
# implies the arguments appear unmodified in the test output.
#
-# The optional RE_NO_ESC_LIST is a list of patterns ot match against the
+# The optional RE_NO_ESC_LIST is a list of patterns to match against the
# inferior arguments when gdbserver is started with --no-escape-args or
# --no-startup-with-shell. There should be one pattern for each argument.
-# If RE_NO_ESC_LIST is not given then RE_ESC_LIST is resused, which implies
+# If RE_NO_ESC_LIST is not given then RE_ESC_LIST is reused, which implies
# there's no difference in how the arguments are printed.
proc args_test { name arglist {re_esc_list {}} {re_no_esc_list {}} } {
if {[llength $re_esc_list] == 0} {
" --startup-with-shell\n"
" Start PROG using a shell. I.e., execs a shell that\n"
" then execs PROG. (default)\n"
- " To make use of globbing and variable subsitution for\n"
+ " To make use of globbing and variable substitution for\n"
" arguments passed directly on gdbserver invocation,\n"
" see the --no-escape-args command line option in\n"
" addition\n"
" ARGS passed directly on gdbserver invocation are\n"
" escaped, so no globbing or variable substitution\n"
" happens for those. This option disables escaping, so\n"
- " globbing and variable substituation in the shell\n"
+ " globbing and variable substitution in the shell\n"
" are done for ARGS on UNIX-like systems.\n"
"\n"
"Debug options:\n"