[binutils-gdb] [gdb/testsuite] Codespell fixes
Tom de Vries via Gdb-cvs <[email protected]> Wed, 10 Jun 2026 09:43:42 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ddc575edf104eb477018a32b31074beffb179034 commit ddc575edf104eb477018a32b31074beffb179034 Author: Tom de Vries <[email protected]> Date: Wed Jun 10 11:43:35 2026 +0200 [gdb/testsuite] Codespell fixes Fix typos in gdb/testsuite using an interactive session: ... $ codespell --toml gdb/pyproject.toml -w -i 3 gdb/testsuite ... Diff: --- gdb/testsuite/Makefile.in | 2 +- gdb/testsuite/TODO | 2 +- gdb/testsuite/boards/native-extended-gdbserver.exp | 4 ++-- gdb/testsuite/config/gdbserver.exp | 8 ++++---- gdb/testsuite/gdb.ada/limited-length.exp | 2 +- gdb/testsuite/gdb.ada/mi_catch_assert.exp | 2 +- gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp | 2 +- gdb/testsuite/gdb.arch/amd64-init-x87-values.exp | 2 +- gdb/testsuite/gdb.arch/arc-analyze-prologue.S | 6 +++--- gdb/testsuite/gdb.arch/arm-disp-step.S | 2 +- gdb/testsuite/gdb.arch/arm-disp-step.exp | 4 ++-- gdb/testsuite/gdb.arch/i386-prologue.c | 2 +- gdb/testsuite/gdb.arch/mips16-thunks.exp | 2 +- gdb/testsuite/gdb.arch/powerpc-power10.s | 2 +- gdb/testsuite/gdb.arch/powerpc-ppr-dscr.exp | 2 +- gdb/testsuite/gdb.arch/pr25124.exp | 2 +- gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp | 2 +- gdb/testsuite/gdb.base/all-architectures.exp.tcl | 2 +- gdb/testsuite/gdb.base/args.exp | 2 +- gdb/testsuite/gdb.base/assign.exp | 2 +- gdb/testsuite/gdb.base/auto-connect-native-target.exp | 2 +- gdb/testsuite/gdb.base/bfd-errors.exp | 2 +- gdb/testsuite/gdb.base/bigcore.exp | 2 +- gdb/testsuite/gdb.base/bp-cond-failure.exp | 2 +- gdb/testsuite/gdb.base/bp-permanent.exp | 4 ++-- gdb/testsuite/gdb.base/call-sc.c | 2 +- gdb/testsuite/gdb.base/call-sc.exp | 4 ++-- gdb/testsuite/gdb.base/callfuncs.exp | 2 +- gdb/testsuite/gdb.base/corefile-find-exec.exp | 2 +- gdb/testsuite/gdb.base/default.exp | 2 +- gdb/testsuite/gdb.base/display.c | 2 +- gdb/testsuite/gdb.base/dlmopen.exp | 2 +- gdb/testsuite/gdb.base/dup-sect.exp | 2 +- gdb/testsuite/gdb.base/ena-dis-br.exp | 2 +- gdb/testsuite/gdb.base/examine-backward.c | 2 +- gdb/testsuite/gdb.base/exprs.exp | 2 +- gdb/testsuite/gdb.base/fileio.c | 2 +- gdb/testsuite/gdb.base/fileio.exp | 8 ++++---- gdb/testsuite/gdb.base/finish.exp | 2 +- gdb/testsuite/gdb.base/frame-unwind-disable.exp | 2 +- gdb/testsuite/gdb.base/gdb11531.exp | 2 +- gdb/testsuite/gdb.base/gdb1250.exp | 2 +- gdb/testsuite/gdb.base/gdbvars.exp | 2 +- gdb/testsuite/gdb.base/gnu-ifunc.exp | 2 +- gdb/testsuite/gdb.base/gnu_vector.exp | 2 +- gdb/testsuite/gdb.base/index-cache.exp | 2 +- gdb/testsuite/gdb.base/infcall-nested-structs.c | 2 +- gdb/testsuite/gdb.base/infcall-timeout.exp | 2 +- gdb/testsuite/gdb.base/inferior-args.exp | 2 +- gdb/testsuite/gdb.base/jit-protocol.h | 2 +- gdb/testsuite/gdb.base/kill-during-detach.c | 2 +- gdb/testsuite/gdb.base/list-multi-source.exp | 4 ++-- gdb/testsuite/gdb.base/list.exp | 8 ++++---- gdb/testsuite/gdb.base/many-completions.exp | 6 +++--- gdb/testsuite/gdb.base/memattr.exp | 4 ++-- gdb/testsuite/gdb.base/pointers.exp | 4 ++-- gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp | 2 +- gdb/testsuite/gdb.base/remote-exec-file.exp | 2 +- gdb/testsuite/gdb.base/return-nodebug.exp | 2 +- gdb/testsuite/gdb.base/run-attach-while-running.exp | 2 +- gdb/testsuite/gdb.base/scope.exp | 2 +- gdb/testsuite/gdb.base/sep.exp | 2 +- gdb/testsuite/gdb.base/share-psymtabs-bt.exp | 4 ++-- gdb/testsuite/gdb.base/sigbpt.exp | 2 +- gdb/testsuite/gdb.base/signull.exp | 2 +- gdb/testsuite/gdb.base/sigstep.exp | 14 +++++++------- gdb/testsuite/gdb.base/source.exp | 2 +- gdb/testsuite/gdb.base/stap-probe.exp | 2 +- gdb/testsuite/gdb.base/startup-hints.exp | 2 +- gdb/testsuite/gdb.base/structs.c | 2 +- gdb/testsuite/gdb.base/structs.exp | 4 ++-- gdb/testsuite/gdb.base/style.exp | 2 +- gdb/testsuite/gdb.base/sysroot-debug-lookup.exp | 4 ++-- gdb/testsuite/gdb.base/ui-redirect.exp | 2 +- gdb/testsuite/gdb.base/until-trailing-insns.exp | 2 +- gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp | 2 +- gdb/testsuite/gdb.base/watchpoint-unaligned.c | 2 +- gdb/testsuite/gdb.base/watchpoint-unaligned.exp | 2 +- gdb/testsuite/gdb.base/watchpoint.exp | 2 +- gdb/testsuite/gdb.cp/call-method-register.exp | 2 +- gdb/testsuite/gdb.cp/cpexprs.exp.tcl | 2 +- gdb/testsuite/gdb.cp/ena-dis-br-range.exp | 2 +- gdb/testsuite/gdb.cp/except-multi-location.exp | 2 +- gdb/testsuite/gdb.cp/local-static.exp | 2 +- gdb/testsuite/gdb.cp/nested-types.exp | 2 +- gdb/testsuite/gdb.cp/oranking.cc | 2 +- gdb/testsuite/gdb.cp/pass-by-ref.exp | 6 +++--- gdb/testsuite/gdb.cp/static-method.exp | 2 +- gdb/testsuite/gdb.cp/virtbase.exp | 2 +- gdb/testsuite/gdb.cp/wide_char_types.exp | 2 +- gdb/testsuite/gdb.dwarf2/data-loc.c | 2 +- gdb/testsuite/gdb.dwarf2/dw2-compressed.S | 2 +- gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-extend-inline-block.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp | 4 ++-- gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp | 4 ++-- gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S | 2 +- gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp | 2 +- .../dw2-step-between-different-inline-functions.exp | 4 ++-- .../gdb.dwarf2/dw2-step-between-inline-func-blocks.exp | 4 ++-- gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp | 2 +- gdb/testsuite/gdb.dwarf2/formdata16.exp | 2 +- gdb/testsuite/gdb.fortran/associated.f90 | 2 +- gdb/testsuite/gdb.fortran/class-allocatable-array.exp | 2 +- gdb/testsuite/gdb.fortran/exprs.exp | 2 +- gdb/testsuite/gdb.fortran/size.exp | 6 +++--- gdb/testsuite/gdb.fortran/vla-type.exp | 2 +- gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp | 2 +- gdb/testsuite/gdb.fortran/vla-value-sub.exp | 6 +++--- gdb/testsuite/gdb.fortran/vla-value.exp | 2 +- gdb/testsuite/gdb.linespec/explicit.exp | 8 ++++---- gdb/testsuite/gdb.python/py-arch-reg-names.exp | 2 +- gdb/testsuite/gdb.python/py-disasm.py | 14 +++++++------- gdb/testsuite/gdb.python/py-finish-breakpoint.exp | 2 +- gdb/testsuite/gdb.python/py-format-address.exp | 6 +++--- gdb/testsuite/gdb.python/py-format-string.exp | 2 +- gdb/testsuite/gdb.python/py-frame.exp | 4 ++-- gdb/testsuite/gdb.python/py-framefilter.exp | 2 +- .../gdb.python/py-mi-var-info-path-expression.exp | 2 +- gdb/testsuite/gdb.python/py-missing-debug.exp | 10 +++++----- gdb/testsuite/gdb.python/py-missing-objfile.exp | 4 ++-- gdb/testsuite/gdb.python/py-parameter-prefix.exp | 2 +- gdb/testsuite/gdb.python/py-parameter.exp | 2 +- gdb/testsuite/gdb.python/py-style.exp | 2 +- gdb/testsuite/gdb.python/py-symbol.exp | 2 +- gdb/testsuite/gdb.python/py-type.exp | 4 ++-- gdb/testsuite/gdb.python/py-value.exp | 4 ++-- gdb/testsuite/gdb.python/py-xmethods.exp | 2 +- gdb/testsuite/gdb.python/python.exp | 4 ++-- gdb/testsuite/gdb.python/tui-window-disabled.exp | 2 +- gdb/testsuite/gdb.python/tui-window-disabled.py | 2 +- gdb/testsuite/gdb.threads/fork-plus-threads.c | 4 ++-- gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp | 2 +- gdb/testsuite/gdb.threads/infcall-from-bp-cond-single.exp | 4 ++-- gdb/testsuite/gdb.threads/leader-exit-schedlock.exp | 2 +- gdb/testsuite/gdb.threads/pending-step.exp | 2 +- gdb/testsuite/gdb.threads/stepi-over-clone.exp | 4 ++-- gdb/testsuite/gdb.threads/thread-bp-deleted.exp | 2 +- gdb/testsuite/gdb.threads/thread-specific-bp.exp | 6 +++--- gdb/testsuite/gdb.trace/backtrace.exp | 2 +- gdb/testsuite/gdb.trace/basic-libipa.exp | 2 +- gdb/testsuite/gdb.trace/collection.exp | 4 ++-- gdb/testsuite/gdb.trace/tfind.exp | 6 +++--- gdb/testsuite/gdb.trace/tracecmd.exp | 2 +- gdb/testsuite/gdb.trace/unavailable.exp | 6 +++--- gdb/testsuite/lib/cache.exp | 2 +- gdb/testsuite/lib/check-test-names.exp | 2 +- gdb/testsuite/lib/cp-support.exp | 2 +- gdb/testsuite/lib/data-structures.exp | 2 +- gdb/testsuite/lib/dwarf.exp | 4 ++-- gdb/testsuite/lib/gdb.exp | 12 ++++++------ gdb/testsuite/lib/gdbserver-support.exp | 2 +- gdb/testsuite/lib/mi-support.exp | 4 ++-- gdb/testsuite/lib/opencl_hostapp.c | 2 +- gdb/testsuite/lib/read1.c | 2 +- gdb/testsuite/lib/tuiterm.exp | 4 ++-- 157 files changed, 234 insertions(+), 234 deletions(-) diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index 51996071026..f103d7ddd65 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -205,7 +205,7 @@ expanded_tests_or_none := $(or $(expanded_tests),no-matching-tests-found) endif # With check-single, if TESTS was expanded to "no-matching-tests-found" then -# this will be passed to DejaGnu, resuling in an error. With check-parallel +# this will be passed to DejaGnu, resulting in an error. With check-parallel # in the same situation, we avoid invoking DejaGnu, and instead just call # the check/no-matching-tests-found rule (which prints a helpful message). # diff --git a/gdb/testsuite/TODO b/gdb/testsuite/TODO index 978991c77cd..dbab844358e 100644 --- a/gdb/testsuite/TODO +++ b/gdb/testsuite/TODO @@ -15,7 +15,7 @@ arguments (PR 1714). Test printing structure arguments of 2,4,6,8,12,16,and 20 bytes. Same for structure return of all those sizes ("return", "finish", and call function). -Get crossload tests to use --enable-targets and reenable them. +Get crossload tests to use --enable-targets and re-enable them. corefile.exp: Test ability to run program when there is a core target, then go diff --git a/gdb/testsuite/boards/native-extended-gdbserver.exp b/gdb/testsuite/boards/native-extended-gdbserver.exp index 7105b8aaac3..64b1afee779 100644 --- a/gdb/testsuite/boards/native-extended-gdbserver.exp +++ b/gdb/testsuite/boards/native-extended-gdbserver.exp @@ -35,7 +35,7 @@ send_user "configuring for gdbserver local testing (extended-remote)\n" # override our definitions. load_lib mi-support.exp -# Overriden in order to start a "gdbserver --multi" instance whenever +# Overridden in order to start a "gdbserver --multi" instance whenever # GDB is started. Note nothing is needed for gdb_exit, since # gdbserver is started with --once, causing it to exit once GDB # disconnects. @@ -89,7 +89,7 @@ proc extended_gdbserver_load_last_file {} { return 0 } -# Overriden in order to set the remote exec-file whenever a file is +# Overridden in order to set the remote exec-file whenever a file is # loaded to gdb. # if { [info procs extended_gdbserver_gdb_file_cmd] == "" } { diff --git a/gdb/testsuite/config/gdbserver.exp b/gdb/testsuite/config/gdbserver.exp index 0ec6dbd4909..af60ef2a41f 100644 --- a/gdb/testsuite/config/gdbserver.exp +++ b/gdb/testsuite/config/gdbserver.exp @@ -26,14 +26,14 @@ # To be addressed or set in your baseboard config file: # # set_board_info gdb_protocol "remote" -# Unles you have a gdbserver that uses a different protocol... +# Unless you have a gdbserver that uses a different protocol... # # set_board_info use_gdb_stub 1 # This tells the rest of the test suite not to do things # like "run" which don't work well on remote targets. # # set_board_info gdb,do_reload_on_run 1 -# Unles you have a gdbserver that can handle multiple sessions. +# Unless you have a gdbserver that can handle multiple sessions. # # set_board_info noargs 1 # Set this if the board does not support passing arguments to the @@ -43,11 +43,11 @@ # Neither the traditional gdbserver nor the one in libremote # can presently capture stdout and relay it to GDB via the # 'O' packet. This means that tests involving printf will -# fail unles you set this varibale in your baseboard +# fail unless you set this variable in your baseboard # configuration file. # # set_board_info gdb,no_hardware_watchpoints 1 -# Unles you have a gdbserver that supports hardware watchpoints. +# Unless you have a gdbserver that supports hardware watchpoints. # FIXME: gdb should detect if the target doesn't support them, # and fall back to using software watchpoints. # diff --git a/gdb/testsuite/gdb.ada/limited-length.exp b/gdb/testsuite/gdb.ada/limited-length.exp index 38d69857f77..891d430f071 100644 --- a/gdb/testsuite/gdb.ada/limited-length.exp +++ b/gdb/testsuite/gdb.ada/limited-length.exp @@ -183,7 +183,7 @@ with_test_prefix "with unlimited print elements" { gdb_test -nonl {output $$2[3]} $re \ "output partially available Large_3d_Array row from history" - # These go straigth to the inferior. + # These go straight to the inferior. set re \ [string_to_regexp \ "((33, 34, 35, 36), (37, 38, 39, 40),\ diff --git a/gdb/testsuite/gdb.ada/mi_catch_assert.exp b/gdb/testsuite/gdb.ada/mi_catch_assert.exp index b128513226d..f3cb37dc6fe 100644 --- a/gdb/testsuite/gdb.ada/mi_catch_assert.exp +++ b/gdb/testsuite/gdb.ada/mi_catch_assert.exp @@ -29,7 +29,7 @@ set MIFLAGS "-i=mi" mi_clean_restart $::testfile ################################################### -# 2. Try catching conditionnal failed assertion. # +# 2. Try catching conditional failed assertion. # ################################################### # Here is the scenario: diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp index f2c3fb1845c..f2566f4572a 100644 --- a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp @@ -135,7 +135,7 @@ with_test_prefix "vex3" { disp_step_func "test_rip_vex3" # Confirm the instruction's expected side effects. It should have - # modifed the 'var128' variable. + # modified the 'var128' variable. gdb_test "p /x (unsigned long long \[2\]) var128" \ " = \\{0x1122334455667788, 0x0\\}" \ "var128 has expected value after" diff --git a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp index 4c7664676d6..52baf2a6b46 100644 --- a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp +++ b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp @@ -66,7 +66,7 @@ proc_with_prefix check_x87_regs_around_init {} { # instruction. Executing this instruction will enable the x87 unit, # causing the kernel to place the default values into all registers. # After this GDB will no longer supply the default values itself but - # will instread read the values out of the xsave buffer. + # will instead read the values out of the xsave buffer. gdb_test "stepi" "fwait" "step to FWAIT instruction" gdb_test "stepi" "nop" "step past FWAIT instruction" diff --git a/gdb/testsuite/gdb.arch/arc-analyze-prologue.S b/gdb/testsuite/gdb.arch/arc-analyze-prologue.S index 8e724b7b028..3fe3812c560 100644 --- a/gdb/testsuite/gdb.arch/arc-analyze-prologue.S +++ b/gdb/testsuite/gdb.arch/arc-analyze-prologue.S @@ -118,7 +118,7 @@ fp_prologue_with_store: ; Verify that store of the non-callee saved registers is not part of prologue. ; Repeat this test for multiple registers, to check boundaries. Also check ; with both ST and PUSH (aka ST.AW). We have to use multiple functions for -; this, because GDB would stop analisys at the first instruction that is not +; this, because GDB would stop analysis at the first instruction that is not ; part of prologue. .align 4 @@ -165,7 +165,7 @@ noncallee_saved_regs_lp_count: add sp,sp,8 ; BLINK is saved, but after an instruction that is not part of prologue. -; Currently arc_analyze_prologue stops analisys at the first intstruction +; Currently arc_analyze_prologue stops analysis at the first instruction ; that is not a part of prologue. This might be not the best way, but it is ; what it is right now, so this test confirms this. @@ -789,7 +789,7 @@ unstored_reg: add sp,sp,12 j [blink] -; Two stores at the same adddress. GDB should report only the R14. +; Two stores at the same address. GDB should report only the R14. .align 4 double_store: diff --git a/gdb/testsuite/gdb.arch/arm-disp-step.S b/gdb/testsuite/gdb.arch/arm-disp-step.S index c5ca2688ec4..1f58a8db766 100644 --- a/gdb/testsuite/gdb.arch/arm-disp-step.S +++ b/gdb/testsuite/gdb.arch/arm-disp-step.S @@ -294,7 +294,7 @@ test_pop_pc_3_start: #endif push {r7} push {r1} /* Push the right address so that PC will get it. */ - /* Push the wrong address so r0-r7 will get the wrong a ddress. If PC + /* Push the wrong address so r0-r7 will get the wrong address. If PC is set from any of them, we can get a FAIL. */ push {r2} push {r2} diff --git a/gdb/testsuite/gdb.arch/arm-disp-step.exp b/gdb/testsuite/gdb.arch/arm-disp-step.exp index d68c7c85e27..ca6c45ea368 100644 --- a/gdb/testsuite/gdb.arch/arm-disp-step.exp +++ b/gdb/testsuite/gdb.arch/arm-disp-step.exp @@ -344,7 +344,7 @@ proc test_str_pc {} { "Breakpoint.*at.* file .*$srcfile, line.*" \ "break test_str_pc_end" - # Set breakpoint on both lables pc_offset_right and pc_offset_wrong + # Set breakpoint on both labels pc_offset_right and pc_offset_wrong gdb_test "break *pc_offset_right" \ "Breakpoint.*at.* file .*$srcfile, line.*" \ "break pc_offset_right" @@ -354,7 +354,7 @@ proc test_str_pc {} { gdb_continue_to_breakpoint "continue to test_str_pc" \ ".*str.*pc\,.*\[sp, #-4\].*" - # If breakpoint on lable pc_offset_wrong is hit, that means the offset + # If breakpoint on label pc_offset_wrong is hit, that means the offset # computed in displaced stepping is different from offset computed # without displaced stepping. Report a failure. gdb_continue_to_breakpoint "continue to pc_offset_right" \ diff --git a/gdb/testsuite/gdb.arch/i386-prologue.c b/gdb/testsuite/gdb.arch/i386-prologue.c index 9266688cae7..cb2911f7655 100644 --- a/gdb/testsuite/gdb.arch/i386-prologue.c +++ b/gdb/testsuite/gdb.arch/i386-prologue.c @@ -101,7 +101,7 @@ asm(".text\n" " ret\n"); /* The purpose of this function is to verify that, during prologue - skip, GDB does not follow a jump at the beginnning of the "real" + skip, GDB does not follow a jump at the beginning of the "real" code. */ asm(".text\n" diff --git a/gdb/testsuite/gdb.arch/mips16-thunks.exp b/gdb/testsuite/gdb.arch/mips16-thunks.exp index f8d485a08de..5941e3c8597 100644 --- a/gdb/testsuite/gdb.arch/mips16-thunks.exp +++ b/gdb/testsuite/gdb.arch/mips16-thunks.exp @@ -223,7 +223,7 @@ proc step_through { id funcs } { set msg "single-stepping through \"${func}\" ($id)" - # Arbitrarily limit the maximium number of steps made to avoid looping + # Arbitrarily limit the maximum number of steps made to avoid looping # indefinitely in the case something goes wrong, increase as (if) # necessary. set count 8 diff --git a/gdb/testsuite/gdb.arch/powerpc-power10.s b/gdb/testsuite/gdb.arch/powerpc-power10.s index f09bb0e6531..fa1156046b5 100644 --- a/gdb/testsuite/gdb.arch/powerpc-power10.s +++ b/gdb/testsuite/gdb.arch/powerpc-power10.s @@ -276,7 +276,7 @@ func: represented in the machines native byte order when words are fetched 32-bits at a time. The first .long is for the 32-bit prefix word and the second .long is for the 32-bit suffix word thus making the word order independent - of the machine Endianes. The use of the .quad statement on Big Endian + of the machine Endianness. The use of the .quad statement on Big Endian results in the disassembler fetching the 32-bit suffix before the 32-bit prefix word. */ .long 0x06000000 /* paddi r0,r1,0 */ diff --git a/gdb/testsuite/gdb.arch/powerpc-ppr-dscr.exp b/gdb/testsuite/gdb.arch/powerpc-ppr-dscr.exp index 1098b6acfc3..b82dda85f8c 100644 --- a/gdb/testsuite/gdb.arch/powerpc-ppr-dscr.exp +++ b/gdb/testsuite/gdb.arch/powerpc-ppr-dscr.exp @@ -17,7 +17,7 @@ # Test access to special purpose registers PPR and DSCR. The test # inferior writes to these registers, we check that GDB reads the same -# values, then write to the registers trough GDB, step once, and check +# values, then write to the registers through GDB, step once, and check # again if we read back the same values. require {istarget "powerpc*-*-linux*"} diff --git a/gdb/testsuite/gdb.arch/pr25124.exp b/gdb/testsuite/gdb.arch/pr25124.exp index b543812a50a..5cd3323eb96 100644 --- a/gdb/testsuite/gdb.arch/pr25124.exp +++ b/gdb/testsuite/gdb.arch/pr25124.exp @@ -27,7 +27,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug clean_restart $testfile -# Check if the disassemble ouput is correct. +# Check if the disassemble output is correct. gdb_test "x /i main+8" \ "$hex <main\\+8>:\[ \t\]+bx\[ \t\]+lr" \ "disassemble thumb instruction, 1st try" diff --git a/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp b/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp index 10415fccd04..8a7c46ad701 100644 --- a/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp +++ b/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp @@ -48,7 +48,7 @@ if { $xlen != 4 && $xlen != 8 } { # proceed if FLEN equals XLEN, otherwise we'd need more test XML # files. if { $flen != 1 && $flen != $xlen } { - unsupport "unknown xlen/flen combination" + unsupported "unknown xlen/flen combination" return } diff --git a/gdb/testsuite/gdb.base/all-architectures.exp.tcl b/gdb/testsuite/gdb.base/all-architectures.exp.tcl index bee41cb533e..7d297947628 100644 --- a/gdb/testsuite/gdb.base/all-architectures.exp.tcl +++ b/gdb/testsuite/gdb.base/all-architectures.exp.tcl @@ -263,7 +263,7 @@ with_test_prefix "tests" { } } - # Record what is the default endianess. As an + # Record what is the default endianness. As an # optimization, we'll skip testing the manual "set # endian DEFAULT" case. set test "show endian" diff --git a/gdb/testsuite/gdb.base/args.exp b/gdb/testsuite/gdb.base/args.exp index d2d5a601b1e..a0db77664c4 100644 --- a/gdb/testsuite/gdb.base/args.exp +++ b/gdb/testsuite/gdb.base/args.exp @@ -77,7 +77,7 @@ proc is_argument_splitting_on {} { proc args_test { name arglist {re_esc_list {}} {re_no_esc_list {}} } { - # If either of the two regexp lists are not specificed then we can + # If either of the two regexp lists are not specified then we can # use an earlier argument value instead. # # For the first regexp list, if this is missing then we use the diff --git a/gdb/testsuite/gdb.base/assign.exp b/gdb/testsuite/gdb.base/assign.exp index 3cb42e035bf..2e7c608526c 100644 --- a/gdb/testsuite/gdb.base/assign.exp +++ b/gdb/testsuite/gdb.base/assign.exp @@ -17,7 +17,7 @@ # This file is part of the gdb testsuite # -# tests for all the assignemnt operators +# tests for all the assignment operators # with mixed types and with int type variables # diff --git a/gdb/testsuite/gdb.base/auto-connect-native-target.exp b/gdb/testsuite/gdb.base/auto-connect-native-target.exp index a5a95b8b5a0..7fc19e8d104 100644 --- a/gdb/testsuite/gdb.base/auto-connect-native-target.exp +++ b/gdb/testsuite/gdb.base/auto-connect-native-target.exp @@ -184,7 +184,7 @@ with_test_prefix "disconnect" { gdb_test "start" "Don't know how to run.*" "start no longer works" } -# Reenable auto-connecting to the native target. Plain "start" should +# Re-enable auto-connecting to the native target. Plain "start" should # start working again. gdb_test_no_output "set auto-connect-native-target on" diff --git a/gdb/testsuite/gdb.base/bfd-errors.exp b/gdb/testsuite/gdb.base/bfd-errors.exp index d4e12f78d99..6e28058e2f0 100644 --- a/gdb/testsuite/gdb.base/bfd-errors.exp +++ b/gdb/testsuite/gdb.base/bfd-errors.exp @@ -13,7 +13,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Tools which use the BFD library will output error messages of the -# form "BFD: some messsage" when a problem with the file upon which it +# form "BFD: some message" when a problem with the file upon which it # operating is found. E.g. an actual message (modulo some shortening # of the pathname) from this test is: # diff --git a/gdb/testsuite/gdb.base/bigcore.exp b/gdb/testsuite/gdb.base/bigcore.exp index b1ced340fc1..41f61996bbe 100644 --- a/gdb/testsuite/gdb.base/bigcore.exp +++ b/gdb/testsuite/gdb.base/bigcore.exp @@ -202,7 +202,7 @@ proc test {dumper} { # very large values. Since GDB uses a 64-bit off_t (when # possible) it shouldn't have this problem. Assume that # things are going to work. Without this assumption the test - # is skiped on systems (such as i386 GNU/Linux with patched + # is skipped on systems (such as i386 GNU/Linux with patched # kernel) which do pass. pass "check core size" set core_ok 1 diff --git a/gdb/testsuite/gdb.base/bp-cond-failure.exp b/gdb/testsuite/gdb.base/bp-cond-failure.exp index f6ca85027e4..bec2df502ac 100644 --- a/gdb/testsuite/gdb.base/bp-cond-failure.exp +++ b/gdb/testsuite/gdb.base/bp-cond-failure.exp @@ -89,7 +89,7 @@ proc run_test { cond_eval access_type bpexpr nloc } { } } -# If we're using a remote target then conditions could be evaulated +# If we're using a remote target then conditions could be evaluated # locally on the host, or on the remote target. Otherwise, conditions # are always evaluated locally. # diff --git a/gdb/testsuite/gdb.base/bp-permanent.exp b/gdb/testsuite/gdb.base/bp-permanent.exp index dac54fadef1..38c4d98303a 100644 --- a/gdb/testsuite/gdb.base/bp-permanent.exp +++ b/gdb/testsuite/gdb.base/bp-permanent.exp @@ -184,9 +184,9 @@ proc test {always_inserted sw_watchpoint} { gdb_test "print \$commands_ran" " = void" \ "breakpoint commands didn't run" - # Reenable the breakpoint, and check that it gets hit and accounted + # Re-enable the breakpoint, and check that it gets hit and accounted # for this time. - gdb_test "enable \$bpnum" "" "reenable breakpoint" + gdb_test "enable \$bpnum" "" "re-enable breakpoint" gdb_test "continue" "Breakpoint .*" \ "stop at permanent breakpoint thrice" diff --git a/gdb/testsuite/gdb.base/call-sc.c b/gdb/testsuite/gdb.base/call-sc.c index 0a954db8b04..de9c9d791f1 100644 --- a/gdb/testsuite/gdb.base/call-sc.c +++ b/gdb/testsuite/gdb.base/call-sc.c @@ -17,7 +17,7 @@ */ -/* Useful abreviations. */ +/* Useful abbreviations. */ typedef void t; typedef char tc; typedef short ts; diff --git a/gdb/testsuite/gdb.base/call-sc.exp b/gdb/testsuite/gdb.base/call-sc.exp index 7fbb6045152..9f9019058ef 100644 --- a/gdb/testsuite/gdb.base/call-sc.exp +++ b/gdb/testsuite/gdb.base/call-sc.exp @@ -88,7 +88,7 @@ proc start_scalars_test { type } { # Given N (0..25), return the corresponding alphabetic letter in lower -# or upper case. This is ment to be i18n proof. +# or upper case. This is meant to be i18n proof. proc i2a { n } { return [string range "abcdefghijklmnopqrstuvwxyz" $n $n] @@ -168,7 +168,7 @@ proc test_scalar_returns { } { # Check that "return" works. # GDB must always force the return of a function that has - # a struct result. Dependant on the ABI, it may, or may not be + # a struct result. Dependent on the ABI, it may, or may not be # possible to store the return value in a register. # The relevant code looks like "L{n} = fun{n}()". The test forces diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp index 3c62b2179d2..f2870c577f2 100644 --- a/gdb/testsuite/gdb.base/callfuncs.exp +++ b/gdb/testsuite/gdb.base/callfuncs.exp @@ -183,7 +183,7 @@ proc do_function_calls {prototypes} { # GDB currently screws up the passing of function parameters for # ABIs that use function descriptors. Instead of passing the - # address of te function descriptor, GDB passes the address of the + # address of the function descriptor, GDB passes the address of the # function body. This results in the called function treating the # first few instructions of the function proper as a descriptor # and attempting a jump through that (a totally random address). diff --git a/gdb/testsuite/gdb.base/corefile-find-exec.exp b/gdb/testsuite/gdb.base/corefile-find-exec.exp index 7219d32e4cb..7811d1318c1 100644 --- a/gdb/testsuite/gdb.base/corefile-find-exec.exp +++ b/gdb/testsuite/gdb.base/corefile-find-exec.exp @@ -159,7 +159,7 @@ with_test_prefix "absolute path" { } with_test_prefix "relative path" { - # Generate a core file using relative a path. We ned to work + # Generate a core file using relative a path. We need to work # around the core_find proc a little here. The core_find proc # creates a sub-directory using standard_output_file and runs the # test binary from inside that directory. diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp index 002f6354e7a..5660ce6171e 100644 --- a/gdb/testsuite/gdb.base/default.exp +++ b/gdb/testsuite/gdb.base/default.exp @@ -503,7 +503,7 @@ gdb_test "output" "Argument required .expression to compute.*" #test overlay gdb_test "overlay" "List of \"overlay\" subcommands:.*" -#test a non-existant overlay subcommand +#test a non-existent overlay subcommand gdb_test "overlay on" "Undefined overlay command.* Try \"help overlay\"." gdb_test_no_output "overlay manual" "overlay manual #1" gdb_test_no_output "overlay auto" diff --git a/gdb/testsuite/gdb.base/display.c b/gdb/testsuite/gdb.base/display.c index c62d250d9cf..5358fed7a82 100644 --- a/gdb/testsuite/gdb.base/display.c +++ b/gdb/testsuite/gdb.base/display.c @@ -34,7 +34,7 @@ int do_vars() char c = 'Q'; int *p_i = &i; float *p_f = &f; - char *p_c = "rubarb and fries"; + char *p_c = "rhubarb and fries"; /* Need some code here to set breaks on. */ diff --git a/gdb/testsuite/gdb.base/dlmopen.exp b/gdb/testsuite/gdb.base/dlmopen.exp index f3062e1122b..60922643d28 100644 --- a/gdb/testsuite/gdb.base/dlmopen.exp +++ b/gdb/testsuite/gdb.base/dlmopen.exp @@ -294,7 +294,7 @@ proc_with_prefix test_solib_unmap_events { } { # This test relies on finding the dynamic linker library, and is # currently written assuming Linux. if { ![istarget *-linux*] } { - unsupport "cannot find dynamic linker library on this target" + unsupported "cannot find dynamic linker library on this target" return } diff --git a/gdb/testsuite/gdb.base/dup-sect.exp b/gdb/testsuite/gdb.base/dup-sect.exp index b20c0e8ca73..d89f5fa1956 100644 --- a/gdb/testsuite/gdb.base/dup-sect.exp +++ b/gdb/testsuite/gdb.base/dup-sect.exp @@ -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/>. -# Test inappropriate offseting of multiple sections with the same name. +# Test inappropriate offsetting of multiple sections with the same name. # When kept in object file (before final executable link) it still works. # When separate debug info file is not used it still works. # When the ELF symbol table is kept in the main binary it still works. diff --git a/gdb/testsuite/gdb.base/ena-dis-br.exp b/gdb/testsuite/gdb.base/ena-dis-br.exp index 5f208644a36..82aca45ae3c 100644 --- a/gdb/testsuite/gdb.base/ena-dis-br.exp +++ b/gdb/testsuite/gdb.base/ena-dis-br.exp @@ -395,7 +395,7 @@ proc test_ena_dis_br { what } { set p2 "fail" if { "$what" == "enable" } { - # Set varibale values for enable command. + # Set variable values for enable command. set oppos "disable" set oppos_res "n" set what_res "y" diff --git a/gdb/testsuite/gdb.base/examine-backward.c b/gdb/testsuite/gdb.base/examine-backward.c index 8e5ac6de542..849ab64df74 100644 --- a/gdb/testsuite/gdb.base/examine-backward.c +++ b/gdb/testsuite/gdb.base/examine-backward.c @@ -19,7 +19,7 @@ Define TestStrings, TestStringsH, and TestStringsW to test utf8, utf16, and utf32 strings respectively. To avoid compile errors due to old compiler mode, we don't use string -literals. The content of each array is the same as followings: +literals. The content of each array is the same as the following: const char TestStrings[] = { "ABCD" diff --git a/gdb/testsuite/gdb.base/exprs.exp b/gdb/testsuite/gdb.base/exprs.exp index ba5ce80a535..efa60bc29ff 100644 --- a/gdb/testsuite/gdb.base/exprs.exp +++ b/gdb/testsuite/gdb.base/exprs.exp @@ -227,7 +227,7 @@ if {!$ok} { setup_xfail "*-*-*" } gdb_test "print (void*) (~((long long)(unsigned long) -1) - 1)" \ "warning: value truncated.*" "truncate (void*) 0xffffffff00000000 - 1" -# String concatentation. +# String concatenation. test_expr "print \"x\" \"y\"" "${::valnum_re} = \"xy\"" test_expr "print \"x\" \"y\" \"z\"" "${::valnum_re} = \"xyz\"" diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c index 7007e6879ef..f6699889ee9 100644 --- a/gdb/testsuite/gdb.base/fileio.c +++ b/gdb/testsuite/gdb.base/fileio.c @@ -109,7 +109,7 @@ test_open (void) if (ret >= 0) close (ret); stop (); - /* Opening nonexistant file */ + /* Opening nonexistent file */ errno = 0; ret = open (NONEXISTENT, O_RDONLY); printf ("open 4: ret = %d, errno = %d %s\n", ret, errno, diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp index b68645e8bb6..049611a8039 100644 --- a/gdb/testsuite/gdb.base/fileio.exp +++ b/gdb/testsuite/gdb.base/fileio.exp @@ -68,7 +68,7 @@ gdb_test continue \ gdb_test continue \ "Continuing\\..*open 4:.*ENOENT$stop_msg" \ -"Opening nonexistant file returns ENOENT" +"Opening nonexistent file returns ENOENT" gdb_test "continue" ".*" "" @@ -137,7 +137,7 @@ gdb_test continue \ gdb_test continue \ "Continuing\\..*stat 4:.*ENOENT$stop_msg" \ -"Stat a nonexistant file returns ENOENT" +"Stat a nonexistent file returns ENOENT" gdb_test continue \ "Continuing\\..*fstat 1:.*OK$stop_msg" \ @@ -232,7 +232,7 @@ gdb_test continue \ gdb_test continue \ "Continuing\\..*rename 5:.*ENOENT$stop_msg" \ -"Renaming a nonexistant file returns ENOENT" +"Renaming a nonexistent file returns ENOENT" gdb_test continue \ "Continuing\\..*unlink 1:.*OK$stop_msg" \ @@ -253,7 +253,7 @@ gdb_test continue \ gdb_test continue \ "Continuing\\..*unlink 3:.*ENOENT$stop_msg" \ -"Unlinking a nonexistant file returns ENOENT" +"Unlinking a nonexistent file returns ENOENT" gdb_test continue \ "Continuing\\..*time 1:.*OK$stop_msg" \ diff --git a/gdb/testsuite/gdb.base/finish.exp b/gdb/testsuite/gdb.base/finish.exp index 973f4cf3f74..81f8990fd9a 100644 --- a/gdb/testsuite/gdb.base/finish.exp +++ b/gdb/testsuite/gdb.base/finish.exp @@ -17,7 +17,7 @@ set allow_float_test [allow_float_test] -# re-use the program from the "return2" test. +# reuse the program from the "return2" test. if { [prepare_for_testing "failed to prepare" finish return2.c] } { return } diff --git a/gdb/testsuite/gdb.base/frame-unwind-disable.exp b/gdb/testsuite/gdb.base/frame-unwind-disable.exp index 3d6e098abfd..b5ae1625323 100644 --- a/gdb/testsuite/gdb.base/frame-unwind-disable.exp +++ b/gdb/testsuite/gdb.base/frame-unwind-disable.exp @@ -95,7 +95,7 @@ gdb_test "backtrace" \ ".*Required frame unwinder may have been disabled, see 'maint info frame-unwinders'.*" \ "no suitable unwinders should be found" -# Reenable all unwinders. +# Re-enable all unwinders. gdb_test_no_output "maint frame-unwinder enable -all" check_unwinder_class "\\w+" "Y" \ "all unwinders should be re-enabled" diff --git a/gdb/testsuite/gdb.base/gdb11531.exp b/gdb/testsuite/gdb.base/gdb11531.exp index 6ed23921f23..6557ddb1c2a 100644 --- a/gdb/testsuite/gdb.base/gdb11531.exp +++ b/gdb/testsuite/gdb.base/gdb11531.exp @@ -47,7 +47,7 @@ if {![runto "$srcfile:$line"]} { # watched (myrec.x) gets updated. This is the instruction where we # expect to receive a watchpoint notification when we do the "stepi" # below. However, having the breakpoint at the same location as this -# intruction can possibly interfere with our testcase, as stepping +# instruction can possibly interfere with our testcase, as stepping # over the breakpoint in order to get past it may incorrectly lead # to the debugger missing the watchpoint hit. This would be a bug # in GDB, but this is not the bug that we are trying to test here. diff --git a/gdb/testsuite/gdb.base/gdb1250.exp b/gdb/testsuite/gdb.base/gdb1250.exp index 15fb2780e0f..fdb9a79a13a 100644 --- a/gdb/testsuite/gdb.base/gdb1250.exp +++ b/gdb/testsuite/gdb.base/gdb1250.exp @@ -46,7 +46,7 @@ if {![runto abort {allow-pending}]} { # By the nature of the bug, it could pass if the C compiler is not smart # enough to implement 'abort' as a noreturn function. This is okay. # The real point is that users often put breakpoints on noreturn -# functions such as 'abort' or some kind of exitting function, and those +# functions such as 'abort' or some kind of exiting function, and those # breakpoints should work. gdb_test_multiple "backtrace" "backtrace from abort" { diff --git a/gdb/testsuite/gdb.base/gdbvars.exp b/gdb/testsuite/gdb.base/gdbvars.exp index 9522d5f2f39..38fa6dded4d 100644 --- a/gdb/testsuite/gdb.base/gdbvars.exp +++ b/gdb/testsuite/gdb.base/gdbvars.exp @@ -145,7 +145,7 @@ proc test_value_history {} { "set value-history\[3\] using \$3" gdb_test "print \$\$" "\\\$4 = 102" \ - "print value-history\[MAX-1\] using inplicit index \$\$" + "print value-history\[MAX-1\] using implicit index \$\$" gdb_test "print \$\$" "\\\$5 = 103" \ "print value-history\[MAX-1\] again using implicit index \$\$" diff --git a/gdb/testsuite/gdb.base/gnu-ifunc.exp b/gdb/testsuite/gdb.base/gnu-ifunc.exp index d6a50a9b686..e6389102ae3 100644 --- a/gdb/testsuite/gdb.base/gnu-ifunc.exp +++ b/gdb/testsuite/gdb.base/gnu-ifunc.exp @@ -240,7 +240,7 @@ proc misc_tests {resolver_attr resolver_debug final_debug} { if {!$resolver_debug && !$final_debug} { # Do the test that is supposed to succeed first, to make sure - # elf_gnu_ifunc_record_cache is empty. This excercises PR28224. + # elf_gnu_ifunc_record_cache is empty. This exercises PR28224. gdb_test "p (int) gnu_ifunc (3)" " = 4" gdb_test "p gnu_ifunc()" \ diff --git a/gdb/testsuite/gdb.base/gnu_vector.exp b/gdb/testsuite/gdb.base/gnu_vector.exp index 36724d1e978..7f2e44ea678 100644 --- a/gdb/testsuite/gdb.base/gnu_vector.exp +++ b/gdb/testsuite/gdb.base/gnu_vector.exp @@ -46,7 +46,7 @@ if { ![runto_main] } { return } -# Get endianess for the scalar->vector casts +# Get endianness for the scalar->vector casts set endian [get_endianness] # Test printing of character vector types diff --git a/gdb/testsuite/gdb.base/index-cache.exp b/gdb/testsuite/gdb.base/index-cache.exp index db0ab054e86..209fd78524f 100644 --- a/gdb/testsuite/gdb.base/index-cache.exp +++ b/gdb/testsuite/gdb.base/index-cache.exp @@ -266,7 +266,7 @@ if { $ret != 0 } { return } -# The ouput of mktemp contains an end of line, remove it. +# The output of mktemp contains an end of line, remove it. set cache_dir [string trimright $cache_dir \r\n] test_cache_disabled $cache_dir "before populate" diff --git a/gdb/testsuite/gdb.base/infcall-nested-structs.c b/gdb/testsuite/gdb.base/infcall-nested-structs.c index b9512a597ab..b273463619c 100644 --- a/gdb/testsuite/gdb.base/infcall-nested-structs.c +++ b/gdb/testsuite/gdb.base/infcall-nested-structs.c @@ -35,7 +35,7 @@ #include <string.h> #include "attributes.h" -/* Useful abreviations. */ +/* Useful abbreviations. */ typedef char tc; typedef short ts; typedef int ti; diff --git a/gdb/testsuite/gdb.base/infcall-timeout.exp b/gdb/testsuite/gdb.base/infcall-timeout.exp index 99d29624337..01f3237d631 100644 --- a/gdb/testsuite/gdb.base/infcall-timeout.exp +++ b/gdb/testsuite/gdb.base/infcall-timeout.exp @@ -29,7 +29,7 @@ if { [build_executable "failed to prepare" ${binfile} "${srcfile}" \ # call that will never return. GDB should eventually timeout and stop # the inferior. # -# When UNWIND is "off" the inferior wil be left in the frame where the +# When UNWIND is "off" the inferior will be left in the frame where the # timeout occurs, otherwise, when UNWIND is "on", GDB should unwind # back to the frame where the inferior call was made. proc run_test { target_async target_non_stop non_stop unwind } { diff --git a/gdb/testsuite/gdb.base/inferior-args.exp b/gdb/testsuite/gdb.base/inferior-args.exp index eacb93b292e..21357c2f479 100644 --- a/gdb/testsuite/gdb.base/inferior-args.exp +++ b/gdb/testsuite/gdb.base/inferior-args.exp @@ -188,7 +188,7 @@ lappend test_desc_list $item # As with the previous test, the double quotes are lost when the # arguments are sent through gdbserver_start, as such, this test isn't # going to work when using the native-gdbserver board, hence we set -# the second arguemnt to 'false'. +# the second argument to 'false'. lappend test_desc_list [list "test three" \ false \ { "\&" "\<" "\#" "\^" "\>" "\$" "\`" } \ diff --git a/gdb/testsuite/gdb.base/jit-protocol.h b/gdb/testsuite/gdb.base/jit-protocol.h index a48a05ff0ee..7d16a2e5432 100644 --- a/gdb/testsuite/gdb.base/jit-protocol.h +++ b/gdb/testsuite/gdb.base/jit-protocol.h @@ -18,7 +18,7 @@ #ifdef JIT_H #error "We don't include jit.h directly since we'd like the jit-reader unit \ tests to break if we make ABI incompatible changes to the structures \ - re-declared here." + redeclared here." #endif #ifndef JIT_PROTOCOL_H diff --git a/gdb/testsuite/gdb.base/kill-during-detach.c b/gdb/testsuite/gdb.base/kill-during-detach.c index 311f37a7c4c..4e402459008 100644 --- a/gdb/testsuite/gdb.base/kill-during-detach.c +++ b/gdb/testsuite/gdb.base/kill-during-detach.c @@ -35,7 +35,7 @@ main () { /* We open a file and move file pos from 0 to 1. We set the checkpoint when pos is 0, and restart it when pos is 1. This makes sure that - restarting the checkpoint excercises calling lseek in the + restarting the checkpoint exercises calling lseek in the inferior. */ /* Open a file. */ diff --git a/gdb/testsuite/gdb.base/list-multi-source.exp b/gdb/testsuite/gdb.base/list-multi-source.exp index b75f9ba0bcf..4cceedd97fa 100644 --- a/gdb/testsuite/gdb.base/list-multi-source.exp +++ b/gdb/testsuite/gdb.base/list-multi-source.exp @@ -72,7 +72,7 @@ proc copy_and_update_source_file { dest value } { } # Make three copies of the single source file in the build directory -# based source tree. Two of the source files are modified slighly to +# based source tree. Two of the source files are modified slightly to # make the output of 'list' unique for each copy. file copy "$srcdir/$subdir/$srcfile" "$file_main" copy_and_update_source_file $file_a "3" @@ -110,7 +110,7 @@ gdb_test "list foo.c:$linenum" \ ".*" \ "$last_linenum\\s+\[^\r\n\]+"] -# Now list using a more acurate filename, we should only get a single +# Now list using a more accurate filename, we should only get a single # result. gdb_test "list a/foo.c:$linenum" \ [multi_line \ diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp index 77161305e04..b200cff1ea6 100644 --- a/gdb/testsuite/gdb.base/list.exp +++ b/gdb/testsuite/gdb.base/list.exp @@ -333,9 +333,9 @@ proc test_list_filename_and_function {} { gdb_test "list list0.c:foo" "Function \"foo\" not defined in .*list0.c" "list filename:function; wrong filename rejected" - gdb_test "list foobar.c:main" "No source file named foobar.c.|Location not found" "list filename:function; nonexistant file" + gdb_test "list foobar.c:main" "No source file named foobar.c.|Location not found" "list filename:function; nonexistent file" - gdb_test "list list0.h:foobar" "Function \"foobar\" not defined in \"list0.h\"." "list filename:function; nonexistant function" + gdb_test "list list0.h:foobar" "Function \"foobar\" not defined in \"list0.h\"." "list filename:function; nonexistent function" } @@ -460,7 +460,7 @@ if {[set_listsize 10]} { # Follows tests that require execution. # Build source listing pattern based on a line range spec string. The -# range can be specificed as "START-END" indicating all lines in range +# range can be specified as "START-END" indicating all lines in range # (inclusive); or just "LINE", indicating just that line. proc build_pattern { range_spec } { @@ -490,7 +490,7 @@ proc build_pattern { range_spec } { # COMMAND is the actual list command, including arguments. LISTSIZE1 # and LISTSIZE2 are the listsizes set just before and after running # the program to the stop point. COMMAND is issued twice. The first -# time, the lines specificed by LINERANGE1 are expected; the second +# time, the lines specified by LINERANGE1 are expected; the second # time, the lines specified by LINERANGE2 are expected. proc test_list {command listsize1 listsize2 linerange1 linerange2} { diff --git a/gdb/testsuite/gdb.base/many-completions.exp b/gdb/testsuite/gdb.base/many-completions.exp index edb61c2d7f4..96624cc0bfb 100644 --- a/gdb/testsuite/gdb.base/many-completions.exp +++ b/gdb/testsuite/gdb.base/many-completions.exp @@ -14,13 +14,13 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Test the case where we have so many completions that we require the -# completions hash table within GDB to grow. Make sure that afte the +# completions hash table within GDB to grow. Make sure that after the # hash table has grown we try to add duplicate entries into the # hash. This checks that GDB doesn't corrupt the hash table when # resizing it. # # In this case we create a test with more functions than the default -# number of entires in the completion hash table (which is 200), then +# number of entries in the completion hash table (which is 200), then # complete on all function names. # # GDB will add all the function names from the DWARF, and then from @@ -78,7 +78,7 @@ if {![runto_main]} { # We don't want to stop gathering completions too early. gdb_test_no_output "set max-completions unlimited" -# Collect all possible completions, and check for duplictes. +# Collect all possible completions, and check for duplicates. set completions [capture_command_output "complete break func_" ""] set duplicates 0 foreach {-> name} [regexp -all -inline -line {^break (\w+\S*)} $completions] { diff --git a/gdb/testsuite/gdb.base/memattr.exp b/gdb/testsuite/gdb.base/memattr.exp index a399111cd34..a007500fb66 100644 --- a/gdb/testsuite/gdb.base/memattr.exp +++ b/gdb/testsuite/gdb.base/memattr.exp @@ -352,7 +352,7 @@ gdb_test_multiple "info mem" "mem 1 to 5 were enabled" { gdb_test "disable mem 7 8" \ "No memory region number 7.*No memory region number 8." \ - "disable non-existant regions" + "disable non-existent regions" # # Test delete @@ -483,7 +483,7 @@ gdb_test_multiple "info mem" "mem 2-4 were deleted" { } gdb_test "delete mem 8" "No memory region number 8." \ - "delete non-existant region" + "delete non-existent region" # # Test overlapping checking diff --git a/gdb/testsuite/gdb.base/pointers.exp b/gdb/testsuite/gdb.base/pointers.exp index 864986677dd..fb649b5644c 100644 --- a/gdb/testsuite/gdb.base/pointers.exp +++ b/gdb/testsuite/gdb.base/pointers.exp @@ -70,7 +70,7 @@ gdb_test "next " "more_code.*;" "continuing after dummy()" # pass "illegal pointer assignment rejected" # } # -re ".*$gdb_prompt $" { fail "illegal pointer assignment rejected" } -# timeout { fail "(timeout) ilegal pointer assignment rejected" } +# timeout { fail "(timeout) illegal pointer assignment rejected" } # } #send_gdb "print v_unsigned_int_pointer == v_double_pointer\n" @@ -96,7 +96,7 @@ gdb_test "next " "more_code.*;" "continuing after dummy()" #send_gdb "print v_unsigned_int_pointer = v_double_pointer\n" #gdb_expect { # -re ".*.*$gdb_prompt $" { -# pass "ilegal pointer assignment rejected" +# pass "illegal pointer assignment rejected" # } # -re ".*$gdb_prompt $" { fail "illegal pointer assignment rejected" } # timeout { fail "(timeout) illegal pointer assignment rejected" } diff --git a/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp b/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp index 9f16d5db42c..39c59736420 100644 --- a/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp +++ b/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp @@ -32,7 +32,7 @@ # When the inferior continued, and eventually returned to the dummy # frame, it would try to execute instruction from the dummy frame # (which for most, or even all, targets, is on the stack), and then -# experience undefined behaviuor, often a SIGSEGV. +# experience undefined behaviour, often a SIGSEGV. standard_testfile .c diff --git a/gdb/testsuite/gdb.base/remote-exec-file.exp b/gdb/testsuite/gdb.base/remote-exec-file.exp index 9d7e7fb504d..ef0de211e25 100644 --- a/gdb/testsuite/gdb.base/remote-exec-file.exp +++ b/gdb/testsuite/gdb.base/remote-exec-file.exp @@ -32,7 +32,7 @@ with_test_prefix "set inf 2" { gdb_test_no_output "set remote exec-file prog2" } -# Check that "show remote exec-file" diplays each inferior's +# Check that "show remote exec-file" displays each inferior's # exec-file. with_test_prefix "show inf 1" { diff --git a/gdb/testsuite/gdb.base/return-nodebug.exp b/gdb/testsuite/gdb.base/return-nodebug.exp index 0715f2924f5..18141f93476 100644 --- a/gdb/testsuite/gdb.base/return-nodebug.exp +++ b/gdb/testsuite/gdb.base/return-nodebug.exp @@ -29,7 +29,7 @@ proc do_test {type} { "Return value type not available for selected stack frame\\.\r\nPlease use an explicit cast of the value to return\\." \ "return from function with no debug info without a cast" - # Cast of the result to the proper width must be done explicitely. + # Cast of the result to the proper width must be done explicitly. gdb_test "return ($type) -1" "#0 .* main \\(.*" \ "return from function with no debug info with a cast" \ "Make selected stack frame return now\\? \\(y or n\\) " "y" diff --git a/gdb/testsuite/gdb.base/run-attach-while-running.exp b/gdb/testsuite/gdb.base/run-attach-while-running.exp index 6e3d039aa0c..29480ac2f2c 100644 --- a/gdb/testsuite/gdb.base/run-attach-while-running.exp +++ b/gdb/testsuite/gdb.base/run-attach-while-running.exp @@ -47,7 +47,7 @@ proc_with_prefix test { non-stop threaded run-or-attach } { # The test doesn't work when the remote target uses the # synchronous remote protocol, because GDB can't kill the # remote inferior while it is running, when we "run" or - # "attach" again. When aswering "yes" to the "Start it from + # "attach" again. When answering "yes" to the "Start it from # the beginning?" question, we otherwise get: # # Cannot execute this command while the target is running. Use the diff --git a/gdb/testsuite/gdb.base/scope.exp b/gdb/testsuite/gdb.base/scope.exp index 338e4a4b446..f0abe732b0c 100644 --- a/gdb/testsuite/gdb.base/scope.exp +++ b/gdb/testsuite/gdb.base/scope.exp @@ -321,7 +321,7 @@ proc_with_prefix test_at_localscopes {} { # Note, we don't pass a binfile to clean_restart because we need to # avoid gdb_load here. With remote targets, gdb_load connects to the -# remote target, and we specificaly want the following tests to run +# remote target, and we specifically want the following tests to run # before the program is started. clean_restart gdb_file_cmd $binfile diff --git a/gdb/testsuite/gdb.base/sep.exp b/gdb/testsuite/gdb.base/sep.exp index 2f77438f3f5..d6188ceb912 100644 --- a/gdb/testsuite/gdb.base/sep.exp +++ b/gdb/testsuite/gdb.base/sep.exp @@ -40,7 +40,7 @@ gdb_test "list sep-proc.c:$location" \ "list using location inside included file" # Try the same, but this time with a breakpoint. We need to exit -# GDB to make sure that we havn't loaded the full symbols yet when +# GDB to make sure that we haven't loaded the full symbols yet when # we test the breakpoint insertion. clean_restart $testfile diff --git a/gdb/testsuite/gdb.base/share-psymtabs-bt.exp b/gdb/testsuite/gdb.base/share-psymtabs-bt.exp index 6984e70354e..fcc91d3a6e0 100644 --- a/gdb/testsuite/gdb.base/share-psymtabs-bt.exp +++ b/gdb/testsuite/gdb.base/share-psymtabs-bt.exp @@ -18,7 +18,7 @@ # # It mimics how a bug with psymtab sharing was initially found: # -# 1. Load the test file twice, such that the second objfile re-uses the +# 1. Load the test file twice, such that the second objfile reuses the # per_bfd object created for the first objfile. # 2. Run to some point where in the backtrace there is a frame for a # function that's in a CU that's not yet read in. @@ -33,7 +33,7 @@ if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \ return } -# Load $binfile a second time. The second created objfile will re-use the +# Load $binfile a second time. The second created objfile will reuse the # partial symtabs created by the first one. if { [gdb_file_cmd $binfile] != 0 } { fail "file command failed" diff --git a/gdb/testsuite/gdb.base/sigbpt.exp b/gdb/testsuite/gdb.base/sigbpt.exp index 8237b555d46..c9f7d73f636 100644 --- a/gdb/testsuite/gdb.base/sigbpt.exp +++ b/gdb/testsuite/gdb.base/sigbpt.exp @@ -233,7 +233,7 @@ proc cont_out { name args } { gdb_test "continue" "Breakpoint.*pc(\r\n| *)=> [at_segv] .*" \ "${name}; continue to breakpoint at fault" - # Now single step the faulted instrction at that breakpoint. + # Now single step the faulted instruction at that breakpoint. gdb_test "stepi" \ "Program received signal ${signame}.*pc(\r\n| *)=> [at_segv] .*" \ "${name}; stepi fault" diff --git a/gdb/testsuite/gdb.base/signull.exp b/gdb/testsuite/gdb.base/signull.exp index 93cc5a0301b..eaf11908d03 100644 --- a/gdb/testsuite/gdb.base/signull.exp +++ b/gdb/testsuite/gdb.base/signull.exp @@ -87,7 +87,7 @@ gdb_test "break keeper" gdb_test "handle SIGSEGV" "SIGSEGV.*Yes.*Yes.*Yes.*Segmentation fault" gdb_test "handle SIGBUS" "SIGBUS.*Yes.*Yes.*Yes.*Bus error" -# For the given signal type, check that: the SIGSEGV occures; a +# For the given signal type, check that: the SIGSEGV occurs; a # backtrace from the SEGV works; the sigsegv is delivered; a backtrace # through the SEGV works. diff --git a/gdb/testsuite/gdb.base/sigstep.exp b/gdb/testsuite/gdb.base/sigstep.exp index 9199216b051..920a4ec851d 100644 --- a/gdb/testsuite/gdb.base/sigstep.exp +++ b/gdb/testsuite/gdb.base/sigstep.exp @@ -69,7 +69,7 @@ proc validate_backtrace {} { validate_backtrace # Goes to handler using ENTER_CMD, runs IN_HANDLER while in the signal -# hander, and then steps out of the signal handler using EXIT_CMD. +# handler, and then steps out of the signal handler using EXIT_CMD. proc advance { enter_cmd in_handler_prefix in_handler exit_cmd } { global gdb_prompt inferior_exited_re @@ -299,7 +299,7 @@ proc skip_to_handler { cmd } { with_test_prefix "$cmd to handler" { restart - # Use the real-time itimer, as otherwize the process never gets + # Use the real-time itimer, as otherwise the process never gets # enough time to expire the timer. gdb_test_no_output "set itimer = itimer_real" @@ -337,7 +337,7 @@ proc skip_to_handler_entry { cmd } { with_test_prefix "$cmd to handler entry" { restart - # Use the real-time itimer, as otherwize the process never gets + # Use the real-time itimer, as otherwise the process never gets # enough time to expire the timer. gdb_test_no_output "set itimer = itimer_real" @@ -395,7 +395,7 @@ proc skip_over_handler { cmd } { with_test_prefix "$cmd over handler" { restart - # Use the real-time itimer, as otherwize the process never gets + # Use the real-time itimer, as otherwise the process never gets # enough time to expire the timer. gdb_test_no_output "set itimer = itimer_real" @@ -430,7 +430,7 @@ proc breakpoint_to_handler { displaced cmd } { gdb_test_no_output "set displaced-stepping $displaced" - # Use the real-time itimer, as otherwize the process never gets + # Use the real-time itimer, as otherwise the process never gets # enough time to expire the timer. gdb_test_no_output "set itimer = itimer_real" @@ -484,7 +484,7 @@ proc breakpoint_to_handler_entry { displaced cmd } { gdb_test_no_output "set displaced-stepping $displaced" - # Use the real-time itimer, as otherwize the process never gets + # Use the real-time itimer, as otherwise the process never gets # enough time to expire the timer. gdb_test_no_output "set itimer = itimer_real" @@ -545,7 +545,7 @@ proc breakpoint_over_handler { displaced cmd with_sw_watch no_handler } { gdb_test_no_output "set displaced-stepping $displaced" - # Use the real-time itimer, as otherwize the process never gets + # Use the real-time itimer, as otherwise the process never gets # enough time to expire the timer. gdb_test_no_output "set itimer = itimer_real" diff --git a/gdb/testsuite/gdb.base/source.exp b/gdb/testsuite/gdb.base/source.exp index 71f9fd49316..04e13e8ec96 100644 --- a/gdb/testsuite/gdb.base/source.exp +++ b/gdb/testsuite/gdb.base/source.exp @@ -53,7 +53,7 @@ gdb_test "source -v -s ./source-test.gdb" \ "echo test source options.*" \ "source -v -s" -# Test sourcing a non-existant file, both when the source command +# 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" \ diff --git a/gdb/testsuite/gdb.base/stap-probe.exp b/gdb/testsuite/gdb.base/stap-probe.exp index 471ef26c2dd..b157e2c13a7 100644 --- a/gdb/testsuite/gdb.base/stap-probe.exp +++ b/gdb/testsuite/gdb.base/stap-probe.exp @@ -17,7 +17,7 @@ standard_testfile # Count the number of probes of TYPE (either 'stap' or 'dtrace'), # from provider matching PROVIDER, with a name matching NAME, and from -# an objec file matching OBJECT. +# an object file matching OBJECT. # # The OBJECT is optional, in which case all objects will be matched. # diff --git a/gdb/testsuite/gdb.base/startup-hints.exp b/gdb/testsuite/gdb.base/startup-hints.exp index daca64699de..48ec5922773 100644 --- a/gdb/testsuite/gdb.base/startup-hints.exp +++ b/gdb/testsuite/gdb.base/startup-hints.exp @@ -86,7 +86,7 @@ proc build_hint_re { width with_style } { # the contents of MSG, first, we need to calculate the total length of # each line, as seen in GDB's output. For this we need to get the sum # of the lengths of each TEXT part. With this length we can then - # calculate the ammount of padding needed for a given terminal width. + # calculate the amount of padding needed for a given terminal width. # # The second use of MSG is to build the regexp that is used to actually # match GDB's output. For this we use STYLE to add escape sequences to diff --git a/gdb/testsuite/gdb.base/structs.c b/gdb/testsuite/gdb.base/structs.c index 1e64a69e428..6d139f9abc4 100644 --- a/gdb/testsuite/gdb.base/structs.c +++ b/gdb/testsuite/gdb.base/structs.c @@ -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/>. */ -/* Useful abreviations. */ +/* Useful abbreviations. */ typedef void t; typedef char tc; typedef short ts; diff --git a/gdb/testsuite/gdb.base/structs.exp b/gdb/testsuite/gdb.base/structs.exp index 514a6751b75..48b4eb29d21 100644 --- a/gdb/testsuite/gdb.base/structs.exp +++ b/gdb/testsuite/gdb.base/structs.exp @@ -174,7 +174,7 @@ proc any { n } { } # Given N (0..25), return the corresponding alphabetic letter in lower -# or upper case. This is ment to be i18n proof. +# or upper case. This is meant to be i18n proof. proc i2a { n } { return [string range "abcdefghijklmnopqrstuvwxyz" $n $n] @@ -271,7 +271,7 @@ proc test_struct_returns { n } { # Check that "return" works. # GDB must always force the return of a function that has - # a struct result. Dependant on the ABI, it may, or may not be + # a struct result. Dependent on the ABI, it may, or may not be # possible to store the return value in a register. # The relevant code looks like "L{n} = fun{n}()". The test forces diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp index 8b9512e1e4f..8a49d1c5973 100644 --- a/gdb/testsuite/gdb.base/style.exp +++ b/gdb/testsuite/gdb.base/style.exp @@ -861,7 +861,7 @@ proc previous_line_is_ok { str } { # Create a copy of STR with all the '\033' characters removed. # Then compare string lengths to get a count of the '\033' - # charactes present in STR. + # characters present in STR. regsub -all "\033" $str {} stripped set count [expr {[string length $str] - [string length $stripped]}] diff --git a/gdb/testsuite/gdb.base/sysroot-debug-lookup.exp b/gdb/testsuite/gdb.base/sysroot-debug-lookup.exp index 621ca47c962..2d902da6352 100644 --- a/gdb/testsuite/gdb.base/sysroot-debug-lookup.exp +++ b/gdb/testsuite/gdb.base/sysroot-debug-lookup.exp @@ -36,7 +36,7 @@ standard_testfile main.c # sysroot. # # Start GDB, set the sysroot, and then load the executable, ensure GDB -# finds the debug information, which must have happened by lookin in +# finds the debug information, which must have happened by looking in # the sysroot. proc_with_prefix lookup_via_build_id {} { set filename ${::binfile}_1 @@ -105,7 +105,7 @@ proc_with_prefix lookup_via_build_id {} { # # Copy the executable into the sysroot and then start GDB, set the # sysroot, and load the executable. Check that GDB finds the debug -# information, which must have happened by lookin in the sysroot. +# information, which must have happened by looking in the sysroot. proc_with_prefix lookup_via_debuglink {} { set filename ${::binfile}_2 if { [build_executable "build exec" ${filename} $::srcfile \ diff --git a/gdb/testsuite/gdb.base/ui-redirect.exp b/gdb/testsuite/gdb.base/ui-redirect.exp index c1cb461496b..313843e3626 100644 --- a/gdb/testsuite/gdb.base/ui-redirect.exp +++ b/gdb/testsuite/gdb.base/ui-redirect.exp @@ -139,7 +139,7 @@ with_test_prefix "redirect debugging" { gdb_test "help" "List of classes of commands:.*" } -with_test_prefix "redirect logging and debuging" { +with_test_prefix "redirect logging and debugging" { gdb_test_no_output "set logging redirect on" gdb_test_no_output "set logging debugredirect on" gdb_test "set logging enabled on" \ diff --git a/gdb/testsuite/gdb.base/until-trailing-insns.exp b/gdb/testsuite/gdb.base/until-trailing-insns.exp index 86909aa6dc4..0c1b7ec0dca 100644 --- a/gdb/testsuite/gdb.base/until-trailing-insns.exp +++ b/gdb/testsuite/gdb.base/until-trailing-insns.exp @@ -118,7 +118,7 @@ Dwarf::assemble $asm_file { include_dir "${srcdir}/${subdir}" file_name "$srcfile" 1 - # Generate a line table program. This mimicks clang-13's behavior + # Generate a line table program. This mimics clang-13's behavior # of adding some !is_stmt at the end of a loop line, making until # not work properly. program { diff --git a/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp b/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp index 3f853b51527..4f8a0d54cb2 100644 --- a/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp +++ b/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp @@ -194,7 +194,7 @@ proc valid_addr_p {cmd offset width} { return 1 } -# Watch WIDTH bytes at BASE + OFFSET. CMD specifices the specific +# Watch WIDTH bytes at BASE + OFFSET. CMD specifies the specific # type of watchpoint to use. If CMD is "hbreak", WIDTH is ignored. # The HW_WP_P flag tells us if hardware watchpoints are enabled or # not. diff --git a/gdb/testsuite/gdb.base/watchpoint-unaligned.c b/gdb/testsuite/gdb.base/watchpoint-unaligned.c index 302ed900db3..7375994b11a 100644 --- a/gdb/testsuite/gdb.base/watchpoint-unaligned.c +++ b/gdb/testsuite/gdb.base/watchpoint-unaligned.c @@ -84,7 +84,7 @@ read_size8twice (void) /* Setting a breakpoint on an instruction after an instruction triggering a watchpoint makes it ambiguous which one will be reported. - Insert a dummy instruction inbetween to make sure the watchpoint gets + Insert a dummy instruction in between to make sure the watchpoint gets reported. */ volatile_dummy = 1; diff --git a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp index e19a5c189c5..9dea7d0e3d4 100644 --- a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp +++ b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp @@ -103,7 +103,7 @@ foreach_with_prefix wpcount {4 7} { for {set wpoffset 1} {$wpoffset <= $wpcount} {incr wpoffset} { set test "$rwatch data.u.size1\[$wpoffset\]" set wpnum "" - # Initialize the result incase the test fails. + # Initialize the result in case the test fails. set wpoffset_to_wpnum($wpoffset) 0 gdb_test_multiple $test $test { -re "$rwatch_exp (${::decimal}): .*\r\n$gdb_prompt $" { diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp index 46eec592402..741e7e441bf 100644 --- a/gdb/testsuite/gdb.base/watchpoint.exp +++ b/gdb/testsuite/gdb.base/watchpoint.exp @@ -613,7 +613,7 @@ proc test_disable_enable_software_watchpoint {} { gdb_test {watch $pc} "^(?:Hardware w|W)atchpoint $::decimal: .pc" gdb_test_no_output "disable \$bpnum" "disable watchpoint `\$pc'" - gdb_test_no_output "enable \$bpnum" "reenable watchpoint `\$pc'" + gdb_test_no_output "enable \$bpnum" "re-enable watchpoint `\$pc'" gdb_test "info watchpoint \$bpnum" \ ".*watchpoint\[ \t\]+keep\[ \t\]+y\[ \t\]+.pc.*" \ diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/gdb.cp/call-method-register.exp index 815c0e6a485..4649e7bf38b 100644 --- a/gdb/testsuite/gdb.cp/call-method-register.exp +++ b/gdb/testsuite/gdb.cp/call-method-register.exp @@ -13,7 +13,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/>. -# Test callling a method on a variable that has been put in a +# Test calling a method on a variable that has been put in a # register. require allow_cplus_tests diff --git a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl index c9646755f0a..31b4c70cc42 100644 --- a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl +++ b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl @@ -116,7 +116,7 @@ proc get_functions {cmd} { # Some convenience variables for this test set DEC {[0-9]}; # a decimal number -set HEX {[0-9a-fA-F]}; # a hexidecimal number +set HEX {[0-9a-fA-F]}; # a hexadecimal number set CONVAR "\\\$$DEC+"; # convenience variable regexp set ADDR "0x$HEX+"; # address diff --git a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp index 36ab2f65969..2219626af2b 100644 --- a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp +++ b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp @@ -131,7 +131,7 @@ gdb_test "info break" [make_info_breakpoint_reply_re y y y y y y] \ # Check that disabling an invalid breakpoint location range does not # cause unexpected behavior. gdb_test "disable 2.6-7" "Bad breakpoint location number '6'" \ - "disable an unvalid location breakpoint range" + "disable an invalid location breakpoint range" gdb_test "info break" [make_info_breakpoint_reply_re y y y y y y] \ "breakpoint info disable 2.6-7" diff --git a/gdb/testsuite/gdb.cp/except-multi-location.exp b/gdb/testsuite/gdb.cp/except-multi-location.exp index 88a847b3ab7..9da06942e49 100644 --- a/gdb/testsuite/gdb.cp/except-multi-location.exp +++ b/gdb/testsuite/gdb.cp/except-multi-location.exp @@ -16,7 +16,7 @@ # "catch catch" catchpoint ended up with multiple locations. This # testcase exercises that scenario by building the binary with # -static-libgcc/-static-libstdc++ and a shared library that depends -# on the libstc++.so DSO (which is how GDB was built and revealed the +# on the libstdc++.so DSO (which is how GDB was built and revealed the # bug), and vice versa. require allow_shlib_tests diff --git a/gdb/testsuite/gdb.cp/local-static.exp b/gdb/testsuite/gdb.cp/local-static.exp index a60412856b1..ca9fd7b911e 100644 --- a/gdb/testsuite/gdb.cp/local-static.exp +++ b/gdb/testsuite/gdb.cp/local-static.exp @@ -113,7 +113,7 @@ set c_scopes_list { {"free_inline_func" "FIF" {= \{void \(void\)\} $hex <free_inline_func>}} } -# A list of all the static varibles defined in each scope. The first +# A list of all the static variables defined in each scope. The first # column is the name of the variable, without the prefix, and the # second column is a regex matching what printing the variable should # output. diff --git a/gdb/testsuite/gdb.cp/nested-types.exp b/gdb/testsuite/gdb.cp/nested-types.exp index 9806bb6d5c8..88cb23a64a2 100644 --- a/gdb/testsuite/gdb.cp/nested-types.exp +++ b/gdb/testsuite/gdb.cp/nested-types.exp @@ -249,7 +249,7 @@ proc node_result {result_var id limit parent_list indent_lvl log} { # Test nested type definitions. LIMIT specifies how many nested levels # of definitions to test. If LOG is true, output the tree to the log in -# a human-readable format mimicing the source code. +# a human-readable format mimicking the source code. # # Only test when not logging. Generating source code usable by the # test is not quite the same as how GDB outputs it. diff --git a/gdb/testsuite/gdb.cp/oranking.cc b/gdb/testsuite/gdb.cp/oranking.cc index d9b31f1dd5c..8e54f1eaf5f 100644 --- a/gdb/testsuite/gdb.cp/oranking.cc +++ b/gdb/testsuite/gdb.cp/oranking.cc @@ -15,7 +15,7 @@ dummy () } /* 1. A standard conversion sequence is better than a user-defined sequence - which is better than an elipses conversion sequence. */ + which is better than an ellipses conversion sequence. */ class A{}; class B: public A {public: operator int (){ return 1;}}; diff --git a/gdb/testsuite/gdb.cp/pass-by-ref.exp b/gdb/testsuite/gdb.cp/pass-by-ref.exp index 66bc4b35658..09e064d37d2 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref.exp @@ -236,12 +236,12 @@ proc generate_container_class { states } { template int cbv_container<$classname> ($classname arg);" } -# Generate useful statements that use a class in the debugee program +# Generate useful statements that use a class in the debuggee program proc generate_stmts { classprefix states {cbvfun "cbv"}} { set classname "${classprefix}_[join $states _]" - # Having an explicit call to the cbv function in the debugee program + # Having an explicit call to the cbv function in the debuggee program # ensures that the compiler will emit necessary function in the binary. if {[is_copy_constructible $states]} { set cbvcall "$cbvfun<$classname> (${classname}_var);\n" @@ -252,7 +252,7 @@ proc generate_stmts { classprefix states {cbvfun "cbv"}} { return "$cbvcall" } -# Generate the complete debugee program +# Generate the complete debuggee program proc generate_program { classes stmts } { global ADDED diff --git a/gdb/testsuite/gdb.cp/static-method.exp b/gdb/testsuite/gdb.cp/static-method.exp index 7ab795d0115..37782dde426 100644 --- a/gdb/testsuite/gdb.cp/static-method.exp +++ b/gdb/testsuite/gdb.cp/static-method.exp @@ -82,7 +82,7 @@ foreach test $methods { set result ".*// [string_to_regexp $expected]" # Test whether the function/method can be "list"ed - # with the filename pre-pended. + # with the filename prepended. if {[string compare $test "xxx::${ans}::A::func"] == 0 && !$have_gcc_45682_fixed} { setup_xfail gcc/45682 "*-*-*" diff --git a/gdb/testsuite/gdb.cp/virtbase.exp b/gdb/testsuite/gdb.cp/virtbase.exp index 530587ac775..3081ad44654 100644 --- a/gdb/testsuite/gdb.cp/virtbase.exp +++ b/gdb/testsuite/gdb.cp/virtbase.exp @@ -58,7 +58,7 @@ gdb_test "print/x b->mA" " = 0xaaaaaaaa" gdb_test "print rtti_data" " = .*, data = 1\}" # Printing a pointer into a virtual base of a larger object used to do -# pointer adjusment directly into the value being printed, in-place +# pointer adjustment directly into the value being printed, in-place # (and did it wrong, too). Print the pointer, and then access the # value history to check the pointer value is not changed. If it had # been changed, then we'd not be able to find the real type anymore. diff --git a/gdb/testsuite/gdb.cp/wide_char_types.exp b/gdb/testsuite/gdb.cp/wide_char_types.exp index e70023ce885..31f97520500 100644 --- a/gdb/testsuite/gdb.cp/wide_char_types.exp +++ b/gdb/testsuite/gdb.cp/wide_char_types.exp @@ -77,7 +77,7 @@ proc do_test_wide_char {lang char16_exp char32_exp wchar_exp} { "char32_t is typedef" } - # wchar_t is a disctinct built-in type in C++03+. + # wchar_t is a distinct built-in type in C++03+. if {$lang != "c"} { gdb_test "ptype $wchar_exp" "type = wchar_t" \ "wchar_t is distinct" diff --git a/gdb/testsuite/gdb.dwarf2/data-loc.c b/gdb/testsuite/gdb.dwarf2/data-loc.c index 6eead5bc7a2..9e62c2f48bc 100644 --- a/gdb/testsuite/gdb.dwarf2/data-loc.c +++ b/gdb/testsuite/gdb.dwarf2/data-loc.c @@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This C file provides some global variables laid out in a way - that mimicks what the GNAT Ada compiler calls "fat pointers". + that mimics what the GNAT Ada compiler calls "fat pointers". These fat pointers are the memory representation used by the compiler to handle dynamic arrays. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compressed.S b/gdb/testsuite/gdb.dwarf2/dw2-compressed.S index e203c41bb13..e24e7c35d76 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-compressed.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-compressed.S @@ -17,7 +17,7 @@ /* This tests that gdb can read compressed sections. The contents are the same as dw2-basic.S, but the .debug_abbrev section has been - comrpessed using zlib. */ + compressed using zlib. */ /* Dummy function to provide debug information for. */ diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp index 5c6ec7a2d4e..6992e9911c8 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp @@ -143,7 +143,7 @@ proc write_asm_file { asm_file dwarf_version func_ranges entry_pc } { } } -# Gobal used to give each generated binary a unique name. +# Global used to give each generated binary a unique name. set test_id 0 proc run_test { dwarf_version empty_loc entry_pc_type } { diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp b/gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp index 9a1f5e101e7..d386614edb5 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp @@ -14,7 +14,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Test different ways in which DW_AT_entry_pc can be expressed in the -# DWARF. Also test with DWARF-4 and DWARF-5. See the individule test +# DWARF. Also test with DWARF-4 and DWARF-5. See the individual test # procs below precise details of what DW_AT_entry_pc forms are tested. load_lib dwarf.exp diff --git a/gdb/testsuite/gdb.dwarf2/dw2-extend-inline-block.exp b/gdb/testsuite/gdb.dwarf2/dw2-extend-inline-block.exp index 481dfbdd134..f2a5e7a54fa 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-extend-inline-block.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-extend-inline-block.exp @@ -509,7 +509,7 @@ proc check_for_block_ranges_2 {} { "block for foo has expected content" } -# Buidl ASM_FILE, along with the global SRCFILE into an executable called +# Build ASM_FILE, along with the global SRCFILE into an executable called # TESTFILE. Place a breakpoint in 'foo', run to the breakpoint, and use # BLOCK_CHECK_FUNC to ensure the block for 'foo' is correct. # diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp index c76864f125d..951434ba7b2 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp @@ -28,7 +28,7 @@ # | 7 | 1 | END | Y | | | # |------|------|------|------|--------|--------| # -# Places a brekpoint at file 2, line 22. Previously GDB would discard +# Places a breakpoint at file 2, line 22. Previously GDB would discard # the line table entry for this line due to switching files for the # file 1, line 18 non-statement line. After patching however, GDB now # discards the file 1, line 18 entry instead, and the breakpoint at @@ -43,7 +43,7 @@ # # Range 'A' is a hypothetical case of how the compiler might choose to # represent this range, this has never been seen in the wild, but is -# an improved debug experiece over range 'B'. However, if we ever run +# an improved debug experience over range 'B'. However, if we ever run # in to the situation where GDB can support the range 'A' test, or # support some real DWARF seen in the wild, then the range 'A' case # should be dropped in favour of supporting real world cases. This is diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp index d8e8c059147..b3a4176a665 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp @@ -28,7 +28,7 @@ # |------|------|------|------|--------| # # -# Place the first brekpoint at file 2, line 22 and a second breakpoint +# Place the first breakpoint at file 2, line 22 and a second breakpoint # at file 1, line 19. A third breakpoint is placed at file 1, line # 18, but as this line table entry will have been discarded[1] the # third breakpoint will actually be placed at the same location as the @@ -178,6 +178,6 @@ gdb_test "info breakpoints" \ "check for breakpoint at ${srcfile3}" # Line table entry for line 18 will have been discarded, so this -# brekpoint will be at the same location as line 19. +# breakpoint will be at the same location as line 19. gdb_test "break ${srcfile3}:18" \ "Note: breakpoint $decimal also set at pc $hex.*" diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S b/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S index 0c07637299e..33fe0a59b8c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S @@ -20,7 +20,7 @@ information describes a parameter as being in a register but a more recent (inner) frame marks the register as being undefined. - This can arrise if the dwarf producer has the location of a parameter in + This can arise if the dwarf producer has the location of a parameter in a callee clobbered register at the time of a call. Older versions of gcc used to do this, newer versions seem to avoid this issue. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp b/gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp index d3bafd4abf1..c0b1265a8dc 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp @@ -60,7 +60,7 @@ Dwarf::assemble $asm_file { # Generate the following line table: # - # Index | Address | Symtab | Line | Statment + # Index | Address | Symtab | Line | Statement # ------|---------|--------|------------ # 0 | A1 | F1 | 101 | X # 1 | A2 | F2 | 201 | X diff --git a/gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp b/gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp index 9ab8e1c953a..02074b1b33c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp @@ -57,8 +57,8 @@ set asm_file [standard_output_file "$::testfile-dw.S"] Dwarf::assemble $asm_file { global srcfile - # Create local varibles like BAR_SRC_* containing the line number - # for the souce lines of 'foo' and 'bar' and 'baz'. These will be + # Create local variables like BAR_SRC_* containing the line number + # for the source lines of 'foo' and 'bar' and 'baz'. These will be # referenced in the generated DWARF. for { set i 1 } { $i <= 2 } { incr i } { set bar_src_$i [gdb_get_line_number "bar line $i"] diff --git a/gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp b/gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp index 33697ae9e4a..70619ae5b69 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp @@ -54,8 +54,8 @@ set asm_file [standard_output_file "$::testfile-dw.S"] Dwarf::assemble $asm_file { global srcfile - # Create local varibles BAR_SRC_* containing the line number for - # the four souce lines of 'foo' and 'bar'. These will be + # Create local variables BAR_SRC_* containing the line number for + # the four source lines of 'foo' and 'bar'. These will be # referenced in the generated DWARF. for { set i 1 } { $i <= 4 } { incr i } { set bar_src_$i [gdb_get_line_number "bar line $i"] diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp b/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp index b3bb1ed0f8c..e9bed9ba10c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp @@ -13,7 +13,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/>. -# Test that GDB can support accesing fields of a structure if the +# Test that GDB can support accessing fields of a structure if the # fields have non-standard names. Specifically, if the names are # reserved C type names like 'double', 'float', 'int', etc. # diff --git a/gdb/testsuite/gdb.dwarf2/formdata16.exp b/gdb/testsuite/gdb.dwarf2/formdata16.exp index ee35fdf0f05..1f135508593 100644 --- a/gdb/testsuite/gdb.dwarf2/formdata16.exp +++ b/gdb/testsuite/gdb.dwarf2/formdata16.exp @@ -20,7 +20,7 @@ require dwarf2_support standard_testfile main.c -dw.S -# We need to know the endianess in order +# We need to know the endianness in order # to write some of the debugging info we'd like to generate. if {[prepare_for_testing "failed to prepare for endianness test" ${testfile} ${srcfile}]} { return diff --git a/gdb/testsuite/gdb.fortran/associated.f90 b/gdb/testsuite/gdb.fortran/associated.f90 index 980505aaa89..4aa706e70f2 100644 --- a/gdb/testsuite/gdb.fortran/associated.f90 +++ b/gdb/testsuite/gdb.fortran/associated.f90 @@ -78,7 +78,7 @@ program test call test_associated (associated (a_real_p, a_real)) ! Setup for final tests, these are performed at the print line - ! below. These final tests are all error conditon checks, + ! below. These final tests are all error condition checks, ! i.e. things that can't be compiled into Fortran. array_1d_p => array_1d diff --git a/gdb/testsuite/gdb.fortran/class-allocatable-array.exp b/gdb/testsuite/gdb.fortran/class-allocatable-array.exp index 01c7fb23a6b..ba221cc5038 100644 --- a/gdb/testsuite/gdb.fortran/class-allocatable-array.exp +++ b/gdb/testsuite/gdb.fortran/class-allocatable-array.exp @@ -36,7 +36,7 @@ gdb_continue_to_breakpoint "Break Here" # If this first test fails then the Fortran compiler being used uses # different names, or maybe a completely different approach, for # representing class like structures. The following tests are -# cetainly going to fail. +# certainly going to fail. # Hence the test case is modified for flang. if { [test_compiler_info {flang-*} f90] } { gdb_test "print this" " = \\( a = 0, b = \\(\\(1, 2, 3\\) \\(4, 5, 6\\)\\) \\)" diff --git a/gdb/testsuite/gdb.fortran/exprs.exp b/gdb/testsuite/gdb.fortran/exprs.exp index bac328cac0c..f50f4c070b2 100644 --- a/gdb/testsuite/gdb.fortran/exprs.exp +++ b/gdb/testsuite/gdb.fortran/exprs.exp @@ -158,7 +158,7 @@ proc test_value_history {} { "Set value-history\[3\] using \$3" gdb_test "print \$\$" "\\\$4 = 102" \ - "Print value-history\[MAX-1\] using inplicit index \$\$" + "Print value-history\[MAX-1\] using implicit index \$\$" gdb_test "print \$\$" "\\\$5 = 103" \ "Print value-history\[MAX-1\] again using implicit index \$\$" diff --git a/gdb/testsuite/gdb.fortran/size.exp b/gdb/testsuite/gdb.fortran/size.exp index 6cd5d002527..c6368d1fdae 100644 --- a/gdb/testsuite/gdb.fortran/size.exp +++ b/gdb/testsuite/gdb.fortran/size.exp @@ -79,7 +79,7 @@ while { $test_count < 600 } { } -re -wrap "SIZE can only be applied to arrays" { # Because of ifort's DWARF pointer representation we need to - # aditionally de-reference Fortran pointers. + # additionally de-reference Fortran pointers. regsub -all "\\(" $command "\(\*" command_deref gdb_test "p $command_deref" " = $answer" pass $gdb_test_name @@ -101,7 +101,7 @@ foreach var {array_1d_p array_2d_p allocatable_array_1d \ } -re -wrap "SIZE can only be applied to arrays" { # Because of ifort's DWARF pointer representation we need to - # aditionally de-reference Fortran pointers. + # additionally de-reference Fortran pointers. gdb_test "p size (*$var, 3)" \ "DIM argument to SIZE must be between 1 and \[1-2\]" pass $gdb_test_name @@ -135,7 +135,7 @@ foreach var {array_1d_p array_2d_p allocatable_array_1d \ } -re -wrap "SIZE can only be applied to arrays" { # Because of ifort's DWARF pointer representation we need to - # aditionally de-reference Fortran pointers. + # additionally de-reference Fortran pointers. gdb_test "p size (*$var)" \ "Attempt to take contents of a not associated pointer\." pass $gdb_test_name diff --git a/gdb/testsuite/gdb.fortran/vla-type.exp b/gdb/testsuite/gdb.fortran/vla-type.exp index 4cd17d98fd0..c5807a3d3a6 100644 --- a/gdb/testsuite/gdb.fortran/vla-type.exp +++ b/gdb/testsuite/gdb.fortran/vla-type.exp @@ -64,7 +64,7 @@ gdb_test "print twov" " = \\\( ivla1 = \\\(\\\(\\\(1, 1, 1, 1, 1\\\)\ \\\(1, 1, 321, 1, 1\\\)\ \\\(1, 1, 1, 1, 1\\\) .*" -# Check type with attribute at beginn of type +# Check type with attribute at begin of type gdb_breakpoint [gdb_get_line_number "threev-filled"] gdb_continue_to_breakpoint "threev-filled" gdb_test "print threev%ivla(1)" " = 1" diff --git a/gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp b/gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp index 145ea4b65b9..3bc64612be7 100644 --- a/gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp +++ b/gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp @@ -43,7 +43,7 @@ gdb_test "print array2" " = \\( *\\( *\\( *30, *3, *3,\[()3, .\]*\\)" \ gdb_test "print array2(2,1,1)=20" " = 20" \ "set array(2,2,2) to 20 in subroutine" gdb_test "print array2" " = \\( *\\( *\\( *30, *20, *3,\[()3, .\]*\\)" \ - "print array2 in foo after it was mofified in debugger" + "print array2 in foo after it was modified in debugger" gdb_test "finish" \ ".*(foo\\\(sub_arr1\\\(5:10, 5:10\\\), sub_arr2\\\(10:15,10:15,10:15\\\)\\\)|foo \\\(array1=..., array2=...\\\).*)" \ diff --git a/gdb/testsuite/gdb.fortran/vla-value-sub.exp b/gdb/testsuite/gdb.fortran/vla-value-sub.exp index 2c76bd03c04..c9e5ac9b817 100644 --- a/gdb/testsuite/gdb.fortran/vla-value-sub.exp +++ b/gdb/testsuite/gdb.fortran/vla-value-sub.exp @@ -53,7 +53,7 @@ gdb_test "print array2" " = \\( *\\( *\\( *30, *3, *3,\[()3, .\]*\\)" \ gdb_test "print array2(2,1,1)=20" " = 20" \ "set array(2,2,2) to 20 in subroutine (passed fixed array)" gdb_test "print array2" " = \\( *\\( *\\( *30, *20, *3,\[()3, .\]*\\)" \ - "print array2 in foo after it was mofified in debugger (passed fixed array)" + "print array2 in foo after it was modified in debugger (passed fixed array)" # Try to access values from a fixed sub-array handled as VLA in subroutine. @@ -73,7 +73,7 @@ gdb_test "print array2" " = \\( *\\( *\\( *30, *3, *3,\[()3, .\]*\\)" \ gdb_test "print array2(2,1,1)=20" " = 20" \ "set array(2,2,2) to 20 in subroutine, passed sub-array" gdb_test "print array2" " = \\( *\\( *\\( *30, *20, *3,\[()3, .\]*\\)" \ - "print array2 in foo after it was mofified in debugger, passed sub-array" + "print array2 in foo after it was modified in debugger, passed sub-array" # Try to access values from a VLA passed to subroutine. @@ -93,4 +93,4 @@ gdb_test "print array2" " = \\( *\\( *\\( *30, *3, *3,\[()3, .\]*\\)" \ gdb_test "print array2(2,1,1)=20" " = 20" \ "set array(2,2,2) to 20 in subroutine, passed vla" gdb_test "print array2" " = \\( *\\( *\\( *30, *20, *3,\[()3, .\]*\\)" \ - "print array2 in foo after it was mofified in debugger, passed vla" + "print array2 in foo after it was modified in debugger, passed vla" diff --git a/gdb/testsuite/gdb.fortran/vla-value.exp b/gdb/testsuite/gdb.fortran/vla-value.exp index 2382120b316..ef309f146fe 100644 --- a/gdb/testsuite/gdb.fortran/vla-value.exp +++ b/gdb/testsuite/gdb.fortran/vla-value.exp @@ -112,7 +112,7 @@ gdb_test "print pvla(5, 45, 20)" \ "print pvla(5, 45, 20) after deassociated" gdb_test "print pvla(7, 45, 14)" \ "no such vector element \\\(vector not associated\\\)" \ - "print pvla(7, 45, 14) after dissasociated" + "print pvla(7, 45, 14) after disassociated" gdb_test "print pvla" " = <not associated>" \ "print vla1 after deassociated" diff --git a/gdb/testsuite/gdb.linespec/explicit.exp b/gdb/testsuite/gdb.linespec/explicit.exp index ccf74d3863d..b5d88e6a190 100644 --- a/gdb/testsuite/gdb.linespec/explicit.exp +++ b/gdb/testsuite/gdb.linespec/explicit.exp @@ -220,7 +220,7 @@ namespace eval $testfile { } } - set tst "complete non-existant function name" + set tst "complete non-existent function name" send_gdb "break -function foo\t" gdb_test_multiple "" $tst { -re "break -function foo\\\x07" { @@ -279,7 +279,7 @@ namespace eval $testfile { } } - set tst "complete non-existant file name" + set tst "complete non-existent file name" send_gdb "break -source foo\t" gdb_test_multiple "" $tst { -re "break -source foo" { @@ -319,7 +319,7 @@ namespace eval $testfile { } } - set tst "complete filename and non-existant function name" + set tst "complete filename and non-existent function name" send_gdb "break -sou 3explicit.c -fun foo\t" gdb_test_multiple "" $tst { -re "break -sou 3explicit.c -fun foo\\\x07" { @@ -610,7 +610,7 @@ namespace eval $testfile { "$tst resolved" } - # Test interaction of condition command and explicit linespec conditons. + # Test interaction of condition command and explicit linespec conditions. clean_restart $exefile set tst "condition_command overrides explicit linespec condition" diff --git a/gdb/testsuite/gdb.python/py-arch-reg-names.exp b/gdb/testsuite/gdb.python/py-arch-reg-names.exp index 6807098fbda..d33a470551e 100644 --- a/gdb/testsuite/gdb.python/py-arch-reg-names.exp +++ b/gdb/testsuite/gdb.python/py-arch-reg-names.exp @@ -74,7 +74,7 @@ gdb_test_multiple "python print (\"\\n\".join (regs))" \ gdb_assert {[llength $py_regs] > 0} \ "Found at least one register from python" gdb_assert {[llength $py_regs] == [llength $regs]} \ - "Same numnber of registers found" + "Same number of registers found" set found_non_match 0 for { set i 0 } { $i < [llength $regs] } { incr i } { diff --git a/gdb/testsuite/gdb.python/py-disasm.py b/gdb/testsuite/gdb.python/py-disasm.py index 4bac1d62468..dc22d234052 100644 --- a/gdb/testsuite/gdb.python/py-disasm.py +++ b/gdb/testsuite/gdb.python/py-disasm.py @@ -80,7 +80,7 @@ class TestDisassembler(Disassembler): class ShowInfoRepr(TestDisassembler): """Call the __repr__ method on the DisassembleInfo, convert the result - to a string, and incude it in a comment in the disassembler output.""" + to a string, and include it in a comment in the disassembler output.""" def disassemble(self, info): comment = "\t## " + repr(info) @@ -91,9 +91,9 @@ class ShowInfoRepr(TestDisassembler): class ShowInfoSubClassRepr(TestDisassembler): - """Create a sub-class of DisassembleInfo. Create an instace of this + """Create a sub-class of DisassembleInfo. Create an instance of this sub-class and call the __repr__ method on it. Convert the result - to a string, and incude it in a comment in the disassembler + to a string, and include it in a comment in the disassembler output. The DisassembleInfo sub-class does not override __repr__ so we are calling the implementation on the parent class.""" @@ -116,7 +116,7 @@ class ShowInfoSubClassRepr(TestDisassembler): class ShowResultRepr(TestDisassembler): """Call the __repr__ method on the DisassemblerResult, convert the - result to a string, and incude it in a comment in the disassembler + result to a string, and include it in a comment in the disassembler output.""" def disassemble(self, info): @@ -128,7 +128,7 @@ class ShowResultRepr(TestDisassembler): class ShowResultStr(TestDisassembler): - """Call the __str__ method on a DisassemblerResult object, incude the + """Call the __str__ method on a DisassemblerResult object, include the resulting string in a comment within the disassembler output.""" def disassemble(self, info): @@ -728,7 +728,7 @@ class AnalyzingDisassembler(Disassembler): info = self.MyInfo(info, self._start, self._end, self._nop_bytes) result = builtin_disassemble_wrapper(info) - # Record some informaiton about the first 'nop' instruction we find. + # Record some information about the first 'nop' instruction we find. if self._nop_index is None and is_nop(result.string): self._nop_index = len(self._pass_1_length) # The offset in the following read_memory call defaults to 0. @@ -772,7 +772,7 @@ class AnalyzingDisassembler(Disassembler): break # If we still don't have a replacement candidate, then search again, - # this time looking for an instruciton that is the same length as a + # this time looking for an instruction that is the same length as a # nop instruction. if replace_idx is None: for idx in range(len(self._pass_1_length)): diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp index 960a44f412a..703bc7d8601 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp @@ -76,7 +76,7 @@ with_test_prefix "normal conditions" { gdb_test "python print (finishbp_default.is_valid())" "False" \ "check finishBP on default frame has been hit" gdb_test "python print (finishbp.is_valid())" "False.*"\ - "ensure that finish bp is invalid afer normal hit" + "ensure that finish bp is invalid after normal hit" # check FinishBreakpoint in main no allowed diff --git a/gdb/testsuite/gdb.python/py-format-address.exp b/gdb/testsuite/gdb.python/py-format-address.exp index 9f32686dfd3..a03505c197f 100644 --- a/gdb/testsuite/gdb.python/py-format-address.exp +++ b/gdb/testsuite/gdb.python/py-format-address.exp @@ -148,7 +148,7 @@ gdb_test "python print(\"Got: \" + gdb.format_address($foo_addr, inf.progspace, # Grab the address of 'bar'. Hopefully this will be the same address # as 'foo', but if not, that's not the end of the world, the test just -# wont be quite as tough. +# won't be quite as tough. set bar_addr [get_hexadecimal_valueof "&bar" "UNKNOWN"] # Now format the address of bar using the default inferior and @@ -158,7 +158,7 @@ gdb_test "python print(\"Got: \" + gdb.format_address($bar_addr))" \ "Got: $bar_addr <bar>" \ "gdb.format_address for bar, while inferior 2 is selected" -# And again, but this time, specificy the program space and +# And again, but this time, specify the program space and # architecture. gdb_test "python print(\"Got: \" + gdb.format_address($bar_addr, inf2.progspace, inf2.architecture()))" \ "Got: $bar_addr <bar>" \ @@ -170,7 +170,7 @@ gdb_test "python print(\"Got: \" + gdb.format_address($bar_addr, inf2.progspace, "Got: $bar_addr <bar>" \ "gdb.format_address for bar, while inferior 1 is selected, pass progspace and architecture" -# Try pasing incorrect object types for program space and architecture. +# Try passing incorrect object types for program space and architecture. gdb_test "python print(\"Got: \" + gdb.format_address($bar_addr, inf2.progspace, inf2.progspace))" \ [multi_line \ "TypeError.*: The architecture argument is not a gdb.Architecture object" \ diff --git a/gdb/testsuite/gdb.python/py-format-string.exp b/gdb/testsuite/gdb.python/py-format-string.exp index 844804a4e27..3bab4752fdd 100644 --- a/gdb/testsuite/gdb.python/py-format-string.exp +++ b/gdb/testsuite/gdb.python/py-format-string.exp @@ -100,7 +100,7 @@ unset alphabet # Produces a potentially cut down version of $whole_big_string like GDB # would represent it. # $max is the maximum number of characters allowed in the string (but -# the return value may contain more to accound for[...] [diff truncated at 100000 bytes]