From: Tom de Vries Date: Wed, 10 Jun 2026 09:43:35 +0000 (+0200) Subject: [gdb/testsuite] Codespell fixes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddc575edf104eb477018a32b31074beffb179034;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Codespell fixes Fix typos in gdb/testsuite using an interactive session: ... $ codespell --toml gdb/pyproject.toml -w -i 3 gdb/testsuite ... --- 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 :\[ \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 . # 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 . -# 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 #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 . # 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 . */ -/* 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 . -# 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 }} } -# 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 . */ /* 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 . # 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 . -# 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" " = " \ "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 " \ "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 " \ @@ -170,7 +170,7 @@ gdb_test "python print(\"Got: \" + gdb.format_address($bar_addr, inf2.progspace, "Got: $bar_addr " \ "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 the extra quotes and +# the return value may contain more to account for the extra quotes and # "..." added by GDB). proc get_cut_big_string { max } { global whole_big_string diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp index ca350cf03c2..6feb1392437 100644 --- a/gdb/testsuite/gdb.python/py-frame.exp +++ b/gdb/testsuite/gdb.python/py-frame.exp @@ -54,7 +54,7 @@ gdb_test "python print (bf1.read_var(variable = \"b\"))" "\"bar\"" \ "test b using named arguments" # Test the read_var function in another block other than the current -# block (in this case, the super block). Test thar read_var is reading +# block (in this case, the super block). Test that read_var is reading # the correct variables of i and f but they are the correct value and type. gdb_py_test_silent_cmd "python sb = bf1.block().superblock" "get superblock" 0 gdb_test "python print (bf1.read_var(\"i\", sb))" "1.1.*" "test i = 1.1" @@ -64,7 +64,7 @@ gdb_test "python print (bf1.read_var(\"f\", sb).type)" "double" "test double f" # Now test read_var with a variable and block using named arguments. gdb_test "python print (bf1.read_var(block = sb, variable = \"i\"))" "1.1.*" \ - "test i = 1.1 usign named arguments" + "test i = 1.1 using named arguments" gdb_test "python print (bf1.read_var(block = sb, variable = \"f\"))" "2.2.*" \ "test f = 2.2 using named arguments" diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp index a993ac5d54f..a62ee30081f 100644 --- a/gdb/testsuite/gdb.python/py-framefilter.exp +++ b/gdb/testsuite/gdb.python/py-framefilter.exp @@ -259,7 +259,7 @@ gdb_test "bt no-filter 1" \ "bt no-filter 1 no address" gdb_test "bt 1" \ "#0 cnuf_dneThe End \\(foo=21, bar=\"Param\", fb=, bf=\{nothing = \"Foo Bar\", f = 42, s = 19\}\\) at .*py-framefilter.c.*" \ - "bt 1 no addresss" + "bt 1 no address" gdb_test_no_output "set python print-stack message" \ "Set python print-stack to message for Error filter" diff --git a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp index f300efe9cae..257a3d99e71 100644 --- a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp +++ b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp @@ -86,7 +86,7 @@ mi_gdb_test "-var-info-path-expression c1.car.atom.ival" \ "-var-info-path-expression c1.car.atom.ival" -# Regression test for a crasher that would occur when deleting a +# Regression test for a crash that would occur when deleting a # varobj that held an iterator that hadn't yet been completed. # See PR varobj/28131. mi_gdb_test "-var-create c1_again * &c1" \ diff --git a/gdb/testsuite/gdb.python/py-missing-debug.exp b/gdb/testsuite/gdb.python/py-missing-debug.exp index 256e3e955c7..bc8a461d0b5 100644 --- a/gdb/testsuite/gdb.python/py-missing-debug.exp +++ b/gdb/testsuite/gdb.python/py-missing-debug.exp @@ -92,7 +92,7 @@ with_test_prefix "handler in gnu_debuglink mode" { gdb_test_no_output "python handler_obj.set_mode(Mode.RETURN_TRUE, \ \"$hidden_filename\", \ \"$debug_filename\")" \ - "confirgure handler" + "configure handler" gdb_file_cmd $binfile gdb_assert {$gdb_file_cmd_debug_info == "debug"} "debug info found" @@ -124,7 +124,7 @@ with_test_prefix "handler in build-id mode" { gdb_test_no_output "python handler_obj.set_mode(Mode.RETURN_TRUE, \ \"$hidden_filename\", \ \"$build_id_filename\")" \ - "confirgure handler" + "configure handler" # Reload the binary and check the debug information is found. gdb_file_cmd $binfile @@ -144,7 +144,7 @@ with_test_prefix "handler returning a string" { # Configure the handler return a filename string. gdb_test_no_output "python handler_obj.set_mode(Mode.RETURN_STRING, \ \"$hidden_filename\")" \ - "confirgure handler" + "configure handler" # Reload the binary and check the debug information is found. gdb_file_cmd $binfile @@ -157,7 +157,7 @@ with_test_prefix "handler returning a string" { # Register another global handler, this one raises an exception. Reload the # debug information, the bad handler should be invoked first, which raises -# an excetption, at which point GDB should skip further Python handlers. +# an exception, at which point GDB should skip further Python handlers. with_test_prefix "handler raises an exception" { gdb_test_no_output \ "python gdb.missing_debug.register_handler(None, rhandler)" @@ -387,7 +387,7 @@ with_test_prefix "return False handler in progspace list" { " Foo"] gdb_test_no_output "python handler_obj.set_mode(Mode.RETURN_FALSE)" \ - "confirgure handler" + "configure handler" gdb_file_cmd $binfile gdb_test "python print(handler_call_log)" \ diff --git a/gdb/testsuite/gdb.python/py-missing-objfile.exp b/gdb/testsuite/gdb.python/py-missing-objfile.exp index 907bdec76f4..e4206beae46 100644 --- a/gdb/testsuite/gdb.python/py-missing-objfile.exp +++ b/gdb/testsuite/gdb.python/py-missing-objfile.exp @@ -315,7 +315,7 @@ with_test_prefix "handler points to lib objfile" { # Register another global handler, this one raises an exception. Reload the # core-file, the bad handler should be invoked first, which raises an -# excetption, at which point GDB should skip further Python handlers. +# exception, at which point GDB should skip further Python handlers. with_test_prefix "handler raises an exception" { gdb_test_no_output \ "python gdb.missing_objfile.register_handler(None, rhandler)" @@ -526,7 +526,7 @@ with_test_prefix "return False handler in global list" { " Foo"] gdb_test_no_output "python handler_obj.set_mode(Mode.RETURN_FALSE)" \ - "confirgure handler" + "configure handler" load_core_file gdb_test "python print(handler_call_log)" \ diff --git a/gdb/testsuite/gdb.python/py-parameter-prefix.exp b/gdb/testsuite/gdb.python/py-parameter-prefix.exp index a8f889443e5..7ee8883d64a 100644 --- a/gdb/testsuite/gdb.python/py-parameter-prefix.exp +++ b/gdb/testsuite/gdb.python/py-parameter-prefix.exp @@ -145,7 +145,7 @@ proc_with_prefix test_simple_sub_class {} { "BasicParamPrefixWithMultiLineDoc('prefix-6')" "" \ "gdb.Parameter('prefix-6 param-1', gdb.COMMAND_NONE, gdb.PARAM_BOOLEAN)" "" \ "class BasicParamPrefixWithDocParameter(gdb.ParameterPrefix):" "" \ - " \"\"\"This is an unsused doc string.\"\"\"" "" \ + " \"\"\"This is an unused doc string.\"\"\"" "" \ " def __init__(self, name, doc):" "" \ " super().__init__(name, gdb.COMMAND_NONE, doc)" "" \ "BasicParamPrefixWithDocParameter('prefix-7'," "" \ diff --git a/gdb/testsuite/gdb.python/py-parameter.exp b/gdb/testsuite/gdb.python/py-parameter.exp index e8b0ef24efb..b606b13b4ec 100644 --- a/gdb/testsuite/gdb.python/py-parameter.exp +++ b/gdb/testsuite/gdb.python/py-parameter.exp @@ -235,7 +235,7 @@ proc_with_prefix test_color_parameter { } { gdb_test_no_output "python test_color_param.value = gdb.Color('#FED210')" \ "assign test_color_param.value to #FED210" gdb_test "python print (test_color_param.value.components)" "\\(254, 210, 16\\)" \ - "test color parameter components from RGB hex tripple value" + "test color parameter components from RGB hex triple value" gdb_test "set print test-color-param 256" \ "integer 256 out of range.*" "set invalid color parameter" gdb_test "python test_color_param.value = gdb.Color(256)" \ diff --git a/gdb/testsuite/gdb.python/py-style.exp b/gdb/testsuite/gdb.python/py-style.exp index ea90f2df485..403cb4efe5b 100644 --- a/gdb/testsuite/gdb.python/py-style.exp +++ b/gdb/testsuite/gdb.python/py-style.exp @@ -334,7 +334,7 @@ gdb_test "python print(my_style_10)" \ gdb_test_no_output "python input_text = \"this is a unique string that is unlikely to appear elsewhere 12345\"" \ "setup an input string" gdb_test_no_output "with style enabled off -- python output_text = filename_style.apply(input_text)" \ - "create an ouput string by applying filename_style" + "create an output string by applying filename_style" gdb_test_no_output "python input_text = \"a totally different string that is also, hopefully, unique\"" \ "replace the input string" gdb_test "python print(output_text)" \ diff --git a/gdb/testsuite/gdb.python/py-symbol.exp b/gdb/testsuite/gdb.python/py-symbol.exp index af187857176..9d36b14567a 100644 --- a/gdb/testsuite/gdb.python/py-symbol.exp +++ b/gdb/testsuite/gdb.python/py-symbol.exp @@ -139,7 +139,7 @@ gdb_breakpoint "$srcfile:$linenum" gdb_continue_to_breakpoint "Break at end for variable a" ".*Break at end.*" gdb_py_test_silent_cmd "python frame = gdb.selected_frame()" "Get Frame" 0 -# Check that we find the static sybol local to this file over the +# Check that we find the static symbol local to this file over the # static symbol from the second source file. gdb_test "python print (gdb.lookup_static_symbol ('rr').value ())" "42" \ "print value of rr from main file" diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp index 59f8141de0d..fe6e1ddfa00 100644 --- a/gdb/testsuite/gdb.python/py-type.exp +++ b/gdb/testsuite/gdb.python/py-type.exp @@ -104,7 +104,7 @@ proc test_fields {lang} { gdb_test "python print (fields\[0\].name)" "a" "check structure field a name" gdb_test "python print (fields\[1\].name)" "b" "check structure field b name" - # Test that unamed fields have 'None' for name. + # Test that unnamed fields have 'None' for name. gdb_py_test_silent_cmd "python ss = gdb.parse_and_eval('ss')" "init ss" 1 gdb_py_test_silent_cmd "python ss_fields = ss.type.fields()" \ "get fields from ss.type" 1 @@ -294,7 +294,7 @@ proc test_is_signed {lang} { } # Compare the types of different symbols from the inferior, we're -# checking that the types of different sybols of the same declared +# checking that the types of different symbols of the same declared # type, are equal (in Python). proc test_type_equality {} { diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp index ba3b1376ff5..ff658465897 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -126,7 +126,7 @@ proc test_value_numeric_ops {} { gdb_test_no_output "python evalue = gdb.history (0)" gdb_test "python print (int (evalue))" "2" - # Test pointer arithmethic + # Test pointer arithmetic # First, obtain the pointers gdb_test "print (void *) 2" ".*" "" @@ -652,7 +652,7 @@ proc test_value_sub_classes {} { gdb_test "python obj = MyValue(b\[size_a0:\],tp)" "In MyValue.__init__" \ "convert 2nd elem of buffer to a MyValue" gdb_test "python print(obj)" "2" \ - "check printing of MyValue when initiaized with a type" + "check printing of MyValue when initialized with a type" } # Test the history count. This must be the first thing called after diff --git a/gdb/testsuite/gdb.python/py-xmethods.exp b/gdb/testsuite/gdb.python/py-xmethods.exp index b8a8b46c1db..ebcbba960fa 100644 --- a/gdb/testsuite/gdb.python/py-xmethods.exp +++ b/gdb/testsuite/gdb.python/py-xmethods.exp @@ -106,7 +106,7 @@ gdb_test "ptype a1.getarrayind" \ gdb_test "p a1\[6\]" ".*int &.*6" "after a1\[\]" gdb_test "p b1\[7\]" ".*const int &.*7" "after b1\[\]" -# Note the following test. Xmethods on dynamc types are not looked up +# Note the following test. Xmethods on dynamic types are not looked up # currently. Hence, even though a_ptr points to a B object, the xmethod # defined for A objects is invoked. gdb_test "p a_ptr->geta()" "From Python .*30" "after: a_ptr->geta()" diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 27dbc555a17..63225cff8c6 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -303,7 +303,7 @@ if {![gdb_debug_enabled]} { gdb_py_test_silent_cmd "set python print-stack full" \ "Set print-stack full for prompt tests" 1 -# Test prompt substituion +# Test prompt substitution gdb_test_multiline "prompt substitution" \ "python" "" \ @@ -380,7 +380,7 @@ gdb_test_multiple "python gdb.prompt_hook = program_prompt" "set the programming } } -gdb_test_multiple "python" "test we ignore substitution for seconday prompts" { +gdb_test_multiple "python" "test we ignore substitution for secondary prompts" { -re "\r\n>$" { pass $gdb_test_name } diff --git a/gdb/testsuite/gdb.python/tui-window-disabled.exp b/gdb/testsuite/gdb.python/tui-window-disabled.exp index 35e94b27821..992124e8b32 100644 --- a/gdb/testsuite/gdb.python/tui-window-disabled.exp +++ b/gdb/testsuite/gdb.python/tui-window-disabled.exp @@ -185,7 +185,7 @@ proc run_test { cleanup_properly } { Term::command "tui disable" send_gdb "tui enable\n" - gdb_assert { [Term::wait_for "^$::gdb_prompt tui disable"] } "TUI renabled" + gdb_assert { [Term::wait_for "^$::gdb_prompt tui disable"] } "TUI re-enabled" Term::check_box "check for python window" 0 0 80 16 } diff --git a/gdb/testsuite/gdb.python/tui-window-disabled.py b/gdb/testsuite/gdb.python/tui-window-disabled.py index d17ccfa4be1..b1e7fca774c 100644 --- a/gdb/testsuite/gdb.python/tui-window-disabled.py +++ b/gdb/testsuite/gdb.python/tui-window-disabled.py @@ -59,7 +59,7 @@ class EventWindow: if cleanup_properly: # Disconnect the listeners and delete the lambda functions. - # This removes cyclic references to SELF, and so alows SELF to + # This removes cyclic references to SELF, and so allows SELF to # be deleted. gdb.events.stop.disconnect(self._stop_listener) gdb.events.exited.disconnect(self._exit_listener) diff --git a/gdb/testsuite/gdb.threads/fork-plus-threads.c b/gdb/testsuite/gdb.threads/fork-plus-threads.c index fd2065af5fa..5da881c47fc 100644 --- a/gdb/testsuite/gdb.threads/fork-plus-threads.c +++ b/gdb/testsuite/gdb.threads/fork-plus-threads.c @@ -59,7 +59,7 @@ fork_child (void) int main (void) { - pid_t childs[NFORKS]; + pid_t children[NFORKS]; int i; int status; int num_exited = 0; @@ -76,7 +76,7 @@ main (void) if (pid > 0) { /* Parent. */ - childs[i] = pid; + children[i] = pid; } else if (pid == 0) { diff --git a/gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp b/gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp index d884587d7ae..bce53c39196 100644 --- a/gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp +++ b/gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp @@ -58,7 +58,7 @@ proc start_gdb_and_runto_main { target_async target_non_stop } { # CONDITION is the expression to be used as the breakpoint condition. # # N_EXPECTED_HITS is the number of threads that we expect to stop due to -# CONDITON. +# CONDITION. # # MESSAGE is used as a test name prefix. proc run_condition_test { message n_expected_hits condition \ diff --git a/gdb/testsuite/gdb.threads/infcall-from-bp-cond-single.exp b/gdb/testsuite/gdb.threads/infcall-from-bp-cond-single.exp index f33b7d667ce..8a49e28fee0 100644 --- a/gdb/testsuite/gdb.threads/infcall-from-bp-cond-single.exp +++ b/gdb/testsuite/gdb.threads/infcall-from-bp-cond-single.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# This test reprocuces bug gdb/28942, performing an inferior function +# This test reproduces bug gdb/28942, performing an inferior function # call from a breakpoint condition in a multi-threaded inferior. # # The important part of this test is that, when the conditional @@ -53,7 +53,7 @@ proc start_gdb_and_runto_main { target_async target_non_stop } { # # TARGET_ASYNC and TARGET_NON_STOP are used when starting up GDB. # -# When STOP_AT_COND is true the breakpoint condtion will evaluate to +# When STOP_AT_COND is true the breakpoint condition will evaluate to # true, and GDB will stop at the breakpoint. Otherwise, the # breakpoint condition will evaluate to false and GDB will not stop at # the breakpoint. diff --git a/gdb/testsuite/gdb.threads/leader-exit-schedlock.exp b/gdb/testsuite/gdb.threads/leader-exit-schedlock.exp index 56e1634c42f..b821faf1765 100644 --- a/gdb/testsuite/gdb.threads/leader-exit-schedlock.exp +++ b/gdb/testsuite/gdb.threads/leader-exit-schedlock.exp @@ -137,7 +137,7 @@ proc test {target-non-stop exit-threads-first schedlock} { if {${target-non-stop} == "on"} { # With non-stop. GDB issues ContinueDebugEvent as soon as it - # seens a debug event, so after a bit, the windows backend + # sees a debug event, so after a bit, the windows backend # will have seen all the thread and process exit events, even # while the user has the prompt. Give it a bit of time for # that to happen, so we can tell which threads have exited by diff --git a/gdb/testsuite/gdb.threads/pending-step.exp b/gdb/testsuite/gdb.threads/pending-step.exp index a4fc5807167..d2f0e851aef 100644 --- a/gdb/testsuite/gdb.threads/pending-step.exp +++ b/gdb/testsuite/gdb.threads/pending-step.exp @@ -43,7 +43,7 @@ # remembers from step 4 a pending SIGTRAP to report for thread 1, # so reports it now. # -# 6) From GDB's perpective, this SIGTRAP can't represent a finished +# 6) From GDB's perspective, this SIGTRAP can't represent a finished # single-step, since thread 1 was not single-stepping (it was # continued in step 5). Neither does this SIGTRAP correspond to a # breakpoint hit. GDB reports to the user a spurious SIGTRAP. diff --git a/gdb/testsuite/gdb.threads/stepi-over-clone.exp b/gdb/testsuite/gdb.threads/stepi-over-clone.exp index 673d77f0028..7a887d7d184 100644 --- a/gdb/testsuite/gdb.threads/stepi-over-clone.exp +++ b/gdb/testsuite/gdb.threads/stepi-over-clone.exp @@ -235,7 +235,7 @@ proc test {non_stop displaced third_thread} { exp_continue } } else { - # All stop mode. Something should have stoppped + # All stop mode. Something should have stopped # by now otherwise we shouldn't have a prompt, but # we can't know which thread will have stopped as # that is a race condition. @@ -348,7 +348,7 @@ proc test {non_stop displaced third_thread} { # We know that the thread shouldn't be stopped # at _start, though. This is the location of # the scratch pad on Linux at the time of - # writting. + # writing. verbose -log "XXX: thread 2 is bad, stuck in scratchpad" incr thread_count incr bad_threads diff --git a/gdb/testsuite/gdb.threads/thread-bp-deleted.exp b/gdb/testsuite/gdb.threads/thread-bp-deleted.exp index f7791e0ea90..53047e3fc1d 100644 --- a/gdb/testsuite/gdb.threads/thread-bp-deleted.exp +++ b/gdb/testsuite/gdb.threads/thread-bp-deleted.exp @@ -46,7 +46,7 @@ if {![runto_main]} { return } -# Check we hace non-stop mode. We do try to force this on above, but maybe +# Check we have non-stop mode. We do try to force this on above, but maybe # the target doesn't support non-stop mode, in which case (hopefully) # non-stop mode will still show as off, and this test should not be run. if {![is_target_non_stop]} { diff --git a/gdb/testsuite/gdb.threads/thread-specific-bp.exp b/gdb/testsuite/gdb.threads/thread-specific-bp.exp index d698b0ce96b..911e080d4ee 100644 --- a/gdb/testsuite/gdb.threads/thread-specific-bp.exp +++ b/gdb/testsuite/gdb.threads/thread-specific-bp.exp @@ -31,17 +31,17 @@ proc get_thread_id {func} { global gdb_prompt global tdlabel_re - set thre -1 + set res -1 set test "get $func thread id" gdb_test_multiple "info threads" $test { -re "(${::decimal})\[^\n\r\]*${tdlabel_re}\[^\n\r\]*$func.*$gdb_prompt $" { # Get the thread's id. - set thre $expect_out(1,string) + set res $expect_out(1,string) pass $test } } - return $thre + return $res } proc check_thread_specific_breakpoint {non_stop} { diff --git a/gdb/testsuite/gdb.trace/backtrace.exp b/gdb/testsuite/gdb.trace/backtrace.exp index 2b995238f7a..2cbe222455b 100644 --- a/gdb/testsuite/gdb.trace/backtrace.exp +++ b/gdb/testsuite/gdb.trace/backtrace.exp @@ -172,7 +172,7 @@ proc gdb_backtrace_tdp_2 { msg } { # We are in a trace frame at which we collected only the registers # Therefore we expect to be able to identify stack frame #0, but - # we don't expect to be able to display its args unles they are + # we don't expect to be able to display its args unless they are # passed in registers (which isn't the case for m68k), and we # don't expect to be able to identify the caller's stack frame. diff --git a/gdb/testsuite/gdb.trace/basic-libipa.exp b/gdb/testsuite/gdb.trace/basic-libipa.exp index c5bf888ef5a..1f080c63c5d 100644 --- a/gdb/testsuite/gdb.trace/basic-libipa.exp +++ b/gdb/testsuite/gdb.trace/basic-libipa.exp @@ -17,7 +17,7 @@ # # This test should run on targets that don't support tracing, but for # which libinproctrace.so is built and helps catch some issues where -# libinproctrace.so is so broken inferiors wont even start. +# libinproctrace.so is so broken inferiors won't even start. load_lib "trace-support.exp" diff --git a/gdb/testsuite/gdb.trace/collection.exp b/gdb/testsuite/gdb.trace/collection.exp index 1b92f443e57..fdb5a7a8ed3 100644 --- a/gdb/testsuite/gdb.trace/collection.exp +++ b/gdb/testsuite/gdb.trace/collection.exp @@ -367,7 +367,7 @@ proc gdb_collect_registers_test { myregs } { with_test_prefix "collect $myregs" { prepare_for_trace_test - # We'll simply re-use the args_test_function for this test + # We'll simply reuse the args_test_function for this test gdb_test "trace args_test_func" \ "Tracepoint ${::decimal} at .*" \ "set tracepoint" @@ -593,7 +593,7 @@ proc gdb_collect_return_test { } { with_test_prefix "collect \$_ret" { prepare_for_trace_test - # We'll simply re-use the args_test_function for this test. + # We'll simply reuse the args_test_function for this test. gdb_test "trace args_test_func" \ "Tracepoint ${::decimal} at .*" \ "set tracepoint" diff --git a/gdb/testsuite/gdb.trace/tfind.exp b/gdb/testsuite/gdb.trace/tfind.exp index 017e90c1411..eadc02f323a 100644 --- a/gdb/testsuite/gdb.trace/tfind.exp +++ b/gdb/testsuite/gdb.trace/tfind.exp @@ -249,9 +249,9 @@ gdb_tfind_test "8.25: tfind none" "none" "-1" gdb_test "tfind tracepoint 0" "failed to find.*" \ "8.25: tfind tracepoint rejects zero" gdb_test "tfind tracepoint 32767" "failed to find.*" \ - "8.25: tfind tracepoint rejects nonexistant tracepoint" + "8.25: tfind tracepoint rejects nonexistent tracepoint" gdb_test "tfind tracepoint -1" "failed to find.*" \ - "8.25: tfind tracepoint rejects nonexistant tracepoint of -1" + "8.25: tfind tracepoint rejects nonexistent tracepoint of -1" # 8.37 tfind tracepoint n where n no longer exists (but used to) gdb_test_no_output "delete trace $tdp2" "" @@ -300,7 +300,7 @@ gdb_test "print \$trace_line" "$testline4" \ "8.14: tfind pc x has correct line" gdb_test "printf \"x \%d x\\n\", \$pc == \$test_pc" \ "x 1 x" \ - "8.14: tfind pc x has corrrect address" + "8.14: tfind pc x has correct address" # 8.15 tfind pc ## check pc same before and after, $trace_frame changed diff --git a/gdb/testsuite/gdb.trace/tracecmd.exp b/gdb/testsuite/gdb.trace/tracecmd.exp index 488ae5c65cf..e4d39470e9b 100644 --- a/gdb/testsuite/gdb.trace/tracecmd.exp +++ b/gdb/testsuite/gdb.trace/tracecmd.exp @@ -86,7 +86,7 @@ gdb_test "info trace" "in gdb_recursion_test.*$srcfile:$testline1. \[\t \]+not installed on target" \ "1.4b: trace function by name" -# 1.5 trace non-existant function +# 1.5 trace non-existent function gdb_delete_tracepoints gdb_test "trace NoSuChFuNc" "Function \"NoSuChFuNc\" not defined." \ "1.5a: trace invalid function" diff --git a/gdb/testsuite/gdb.trace/unavailable.exp b/gdb/testsuite/gdb.trace/unavailable.exp index 309ef2a8585..6cafa111e55 100644 --- a/gdb/testsuite/gdb.trace/unavailable.exp +++ b/gdb/testsuite/gdb.trace/unavailable.exp @@ -328,7 +328,7 @@ proc gdb_unavailable_registers_test { } { prepare_for_trace_test - # We'll simply re-use the globals_test_function for this test + # We'll simply reuse the globals_test_function for this test gdb_test "trace globals_test_func" \ "Tracepoint ${::decimal} at .*" \ "set tracepoint" @@ -387,7 +387,7 @@ proc gdb_unavailable_floats { } { prepare_for_trace_test - # We'll simply re-use the globals_test_function for this test + # We'll simply reuse the globals_test_function for this test gdb_test "trace globals_test_func" \ "Tracepoint ${::decimal} at .*" \ "set tracepoint" @@ -551,7 +551,7 @@ proc gdb_collect_globals_test_1 { } { # Note, depends on previous test. gdb_test "print \$\[1\]" \ " = " \ - "subscript a non-memory rvalue array, accessing an unvailable element" + "subscript a non-memory rvalue array, accessing an unavailable element" # Access a field of a non-lazy value, making sure the # unavailable-ness is propagated. History values are easy diff --git a/gdb/testsuite/lib/cache.exp b/gdb/testsuite/lib/cache.exp index 9364b06fe7f..71688ee373e 100644 --- a/gdb/testsuite/lib/cache.exp +++ b/gdb/testsuite/lib/cache.exp @@ -189,7 +189,7 @@ proc gdb_do_cache {name args} { # As with the exit tracking above we also need to track any nested # caching procs that this proc might call. To do this we backup # the current global list of nested caching proc calls and reset - # the global back ot the empty list. As nested caching procs are + # the global back to the empty list. As nested caching procs are # called their names are added to the global list, see # gdb_cache_maybe_gdb_exit for where this is done. set old_gdb_nested_caching_proc_calls $::gdb_nested_caching_proc_calls diff --git a/gdb/testsuite/lib/check-test-names.exp b/gdb/testsuite/lib/check-test-names.exp index e76b3c6b90e..51c241019b5 100644 --- a/gdb/testsuite/lib/check-test-names.exp +++ b/gdb/testsuite/lib/check-test-names.exp @@ -131,7 +131,7 @@ namespace eval ::CheckTestNames { _check_well_formed_name $message } - # If COUNT is greater than zero, disply PREFIX followed by COUNT. + # If COUNT is greater than zero, display PREFIX followed by COUNT. proc maybe_show_count { prefix count } { if { $count > 0 } { clone_output "$prefix$count" diff --git a/gdb/testsuite/lib/cp-support.exp b/gdb/testsuite/lib/cp-support.exp index 0bc71cd5822..51f0d977f27 100644 --- a/gdb/testsuite/lib/cp-support.exp +++ b/gdb/testsuite/lib/cp-support.exp @@ -147,7 +147,7 @@ namespace eval ::cp_support_internal { # # If you test the same class declaration more than once, you can specify # IN_CLASS_TABLE as "ibid". "ibid" means: look for a previous class -# table that had the same IN_KEY and IN_TAG, and re-use that table. +# table that had the same IN_KEY and IN_TAG, and reuse that table. # # IN_TAIL is the expected text after the close brace, specifically the "*" # in "struct { ... } *". This is an optional parameter. The default diff --git a/gdb/testsuite/lib/data-structures.exp b/gdb/testsuite/lib/data-structures.exp index e46a36bb048..8f664abb022 100644 --- a/gdb/testsuite/lib/data-structures.exp +++ b/gdb/testsuite/lib/data-structures.exp @@ -151,7 +151,7 @@ namespace eval ::Queue { set data_($oid) [linsert $data_($oid) 0 $elem] } - # Re-use some common routines from the Stack implementation. + # Reuse some common routines from the Stack implementation. namespace import ::Stack::create ::Stack::new ::Stack::empty \ ::Stack::delete ::Stack::push ::Stack::length ::Stack::error_if diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index 9575f4b0b1c..ca2278606d6 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -227,7 +227,7 @@ proc init_shared_gdb {} { # if { $share } shared_gdb_disable # } # -# to write functionalty that could share ($share == 1) or could not +# to write functionality that could share ($share == 1) or could not # share ($share == 0) a gdb session between two uses. proc shared_gdb_enable {} { @@ -3964,7 +3964,7 @@ namespace eval Dwarf { # added in the BODY. # default = 1. # As a special case, if OPTIONS is a list of length 1, it's - # interpreted as specifing the filename. + # interpreted as specifying the filename. # BODY is Tcl code to emit the assembly. It is evaluated via # "eval" -- not uplevel as you might expect, because it is # important to run the body in the Dwarf namespace. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index c87876664f0..e8c77cec243 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -27,7 +27,7 @@ if {$tool == ""} { exit 2 } -# Add "convience abbreviation" for positive decimals, without leading zeros. +# Add "convenience abbreviation" for positive decimals, without leading zeros. set positive {(?:[1-9][0-9]*)} # Dejagnu defines decimal as one of the "convenience abbreviations". @@ -251,7 +251,7 @@ if {![info exists GCORE]} { } verbose "using GCORE = $GCORE" 2 -# Return 0 if the gcore scipt is missing. +# Return 0 if the gcore script is missing. proc has_gcore_script {} { global GCORE if {$GCORE == ""} { @@ -6819,7 +6819,7 @@ proc gdb_compile {source dest type options} { || [istarget "*-*-*djgpp"] || [istarget "*-*-cygwin*"])} { # Force output to unbuffered mode, by linking in an object file - # with a global contructor that calls setvbuf. + # with a global constructor that calls setvbuf. # # Compile the special object separately for two reasons: # 1) Insulate it from $options. @@ -9543,7 +9543,7 @@ proc build_executable_from_specs {testname executable options args} { } # Build executable named EXECUTABLE, from SOURCES. If SOURCES are not -# provided, uses $EXECUTABLE.c. The TESTNAME paramer is the name of test +# provided, uses $EXECUTABLE.c. The TESTNAME parameter is the name of test # to pass to untested, if something is wrong. OPTIONS are passed # to gdb_compile directly. proc build_executable { testname executable {sources ""} {options {debug}} } { @@ -10880,7 +10880,7 @@ proc get_index_type { objfile { testname "" } } { return $index_type } -# Add a .gdb_index section to PROGRAM, unless it alread has an index +# Add a .gdb_index section to PROGRAM, unless it already has an index # (.gdb_index/.debug_names). Gdb doesn't support building an index from a # program already using one. Return 1 if a .gdb_index was added, return 0 # if it already contained an index, and -1 if an error occurred. @@ -11360,7 +11360,7 @@ gdb_caching_proc has_hw_wp_support {} { } -re ".*$gdb_prompt $" { set has_hw_wp_support 0 - verbose -log "\n$me: Default, hardware watchpoint not deteced" + verbose -log "\n$me: Default, hardware watchpoint not detected" } } diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp index 98ee060e9ff..f7fb9258649 100644 --- a/gdb/testsuite/lib/gdbserver-support.exp +++ b/gdb/testsuite/lib/gdbserver-support.exp @@ -20,7 +20,7 @@ # 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... # After GDB starts you should check global $gdbserver_protocol instead as # the testfile may force a specific different target protocol itself. # diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index 9f59510bdc5..4fd3eeb0dde 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -2268,9 +2268,9 @@ namespace eval ::varobj_tree { # An index which is appended to root varobjs to ensure uniqueness. variable _root_idx 0 - # A procedure to help with debuggging varobj trees. + # A procedure to help with debugging varobj trees. # VARIABLE_NAME is the name of the variable to dump. - # CMD, if present, is the name of the callback to output the contstructed + # CMD, if present, is the name of the callback to output the constructed # strings. By default, it uses expect's "send_log" command. # TERM, if present, is a terminating character. By default it is the newline. # diff --git a/gdb/testsuite/lib/opencl_hostapp.c b/gdb/testsuite/lib/opencl_hostapp.c index 8ab18796f0a..161b2a564c2 100644 --- a/gdb/testsuite/lib/opencl_hostapp.c +++ b/gdb/testsuite/lib/opencl_hostapp.c @@ -59,7 +59,7 @@ main () cl_int *data; /* In order to see which devices the OpenCL implementation on your platform - provides you may issue a call to the print_clinfo () fuction. */ + provides you may issue a call to the print_clinfo () function. */ /* Initialize the data the OpenCl program operates on. */ data = (cl_int*) calloc (1, size); diff --git a/gdb/testsuite/lib/read1.c b/gdb/testsuite/lib/read1.c index f751b849397..489e9d54250 100644 --- a/gdb/testsuite/lib/read1.c +++ b/gdb/testsuite/lib/read1.c @@ -28,7 +28,7 @@ /* Default READMORE method. */ #define READMORE_METHOD_DEFAULT 2 -/* Default READMORE sleep time in miliseconds. */ +/* Default READMORE sleep time in milliseconds. */ #define READMORE_SLEEP_DEFAULT 10 /* Helper function. Initialize *METHOD according to environment variable diff --git a/gdb/testsuite/lib/tuiterm.exp b/gdb/testsuite/lib/tuiterm.exp index a03c32b3f60..e889e3b931b 100644 --- a/gdb/testsuite/lib/tuiterm.exp +++ b/gdb/testsuite/lib/tuiterm.exp @@ -1193,7 +1193,7 @@ proc Term::wait_for {wait_for} { } # Accept some output from gdb and update the screen. Wait for the screen -# region X/Y/WIDTH/HEIGTH to matches REGEXP. Return 0 on timeout, 1 on +# region X/Y/WIDTH/HEIGHT to matches REGEXP. Return 0 on timeout, 1 on # success. proc Term::wait_for_region_contents {x y width height regexp} { while 1 { @@ -1491,7 +1491,7 @@ proc Term::_check_box {x y width height} { return "lr corner is $c, not +" } - # Note we do not check the full horizonal borders of the box. + # Note we do not check the full horizontal borders of the box. # The top will contain a title, and the bottom may as well, if # it is overlapped by some other border. However, at most a # title should appear as '+-VERY LONG TITLE-+', so we can