]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Make gdb.mi codespell-clean
authorTom de Vries <tdevries@suse.de>
Tue, 20 May 2025 09:05:55 +0000 (11:05 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 20 May 2025 09:05:55 +0000 (11:05 +0200)
Make gdb.mi codespell-clean and add the dir to the pre-commit
configuration.

Approved-By: Tom Tromey <tom@tromey.com>
.pre-commit-config.yaml
gdb/testsuite/gdb.mi/mi-condbreak-throw.exp
gdb/testsuite/gdb.mi/mi-multi-commands.exp
gdb/testsuite/gdb.mi/mi-var-display.exp
gdb/testsuite/gdb.mi/user-selected-context-sync.exp

index 116502a47fc288b15361fa32d6c8b1ac46c97828..0eb727eeb6b14e2e06d6fd4a0c461ce069593e4d 100644 (file)
@@ -70,7 +70,7 @@ repos:
     rev: v2.4.1
     hooks:
     - id: codespell
-      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|gdb|go|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/'
+      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|gdb|go|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/'
       args: [--config, gdb/contrib/setup.cfg]
   - repo: local
     hooks:
index 9897b2bb31dc52d07059b9aeb2f9d23b9afec035..0a89a8a99bcc65ee0c1ff12c3db7faf48c8078f3 100644 (file)
@@ -16,7 +16,7 @@
 # Check that when GDB fails to evaluate the condition of a conditional
 # breakpoint we only get one *stopped notification.  In this test case
 # the breakpoint condition fails due to throwing an uncaught C++
-# excpetion.
+# exception.
 
 require allow_cplus_tests
 
index 20b8d46a934acd9a6ed8718adc0129fbcf843443..3bc63eb2747084855f34207c7d065c9a7cbcd77d 100644 (file)
@@ -90,7 +90,7 @@ proc run_test { args } {
        # looking for.  However, due to the unpredictable
        # intermingling, it's much easier if we drop the ^ anchor.
        # However, with this gone dejagnu would sometimes match the
-       # second comand output before the first commands output.
+       # second command output before the first commands output.
        #
        # This approach just looks for the first command output, then,
        # once that has been found, we start looking for the second
index 61b3894ce92ff0419dad7c298e44658bbb709cc3..553536852f6d1ec69647505b83cd0f604bf60289 100644 (file)
@@ -96,7 +96,7 @@ mi_gdb_test "-var-evaluate-expression bar" \
 # Desc: change value of bar
 mi_gdb_test "-var-assign bar 3" \
        "\\^done,value=\"0x3\"" \
-       "assing to variable bar"
+       "assign to variable bar"
 
 mi_gdb_test "-var-set-format bar decimal" \
        "\\^done,format=\"decimal\",value=\"3\"" \
@@ -152,7 +152,7 @@ mi_gdb_test "-var-evaluate-expression foo" \
 # Desc: change value of foo
 mi_gdb_test "-var-assign foo 3" \
        "\\^done,value=\"03\"" \
-       "assing to variable foo"
+       "assign to variable foo"
 
 mi_gdb_test "-var-set-format foo decimal" \
        "\\^done,format=\"decimal\",value=\"3\"" \
index 9198cfbb72797e341b12637a9f18fd6958fa6986..ec22538d30bf0a83e529a4b24bb54b00c91cd236 100644 (file)
@@ -985,7 +985,7 @@ proc_with_prefix test_mi_stack_select_frame { mode } {
 
        # Now use the '-stack-select-frame' command with the --frame
        # option, this verifies that even when the frame GDB would
-       # swith to is the same as the frame specified with --frame, an
+       # switch to is the same as the frame specified with --frame, an
        # event is still sent to the CLI.
 
        set cli_re [make_cli_re $mode -1 -1 0]