[binutils-gdb] [gdb] Fix some typos

Tom de Vries vries@sourceware.org
Tue Feb 18 06:36:42 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=24a2f1a6b0ceca9ab50c0d5cd16daba5a7ee1a3a

commit 24a2f1a6b0ceca9ab50c0d5cd16daba5a7ee1a3a
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue Feb 18 07:36:44 2025 +0100

    [gdb] Fix some typos
    
    Fix typos:
    ...
    overriden -> overridden
    reate -> create
    ...
    
    Tested on x86_64-linux.
    I

Diff:
---
 gdb/python/lib/gdb/FrameDecorator.py           | 2 +-
 gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp | 2 +-
 gdb/testsuite/lib/gdb.exp                      | 4 ++--
 gdb/testsuite/lib/mi-support.exp               | 4 ++--
 gdb/testsuite/lib/prompt.exp                   | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/gdb/python/lib/gdb/FrameDecorator.py b/gdb/python/lib/gdb/FrameDecorator.py
index 5cdfbe1b981..43efe8a5065 100644
--- a/gdb/python/lib/gdb/FrameDecorator.py
+++ b/gdb/python/lib/gdb/FrameDecorator.py
@@ -174,7 +174,7 @@ class FrameDecorator(_FrameDecoratorBase):
     sub-classed from FrameDecorator.  If Decorator1 just overrides the
     'function' method, then all of the other methods are carried out
     by the super-class FrameDecorator.  But Decorator2 may have
-    overriden other methods, so FrameDecorator will look at the
+    overridden other methods, so FrameDecorator will look at the
     'base' parameter and defer to that class's methods.  And so on,
     down the chain."""
 
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp
index 65cb05f7366..2af573f2170 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp
@@ -212,7 +212,7 @@ proc out_line { name cu_dir cu_name line_dir line_name } {
 }
 
 # IFSOME can be optionally _same or _different if >= 2 absolute directories are
-# provided.  Then in the _different case the overriden directories have invalid
+# provided.  Then in the _different case the overridden directories have invalid
 # XDIR value.
 
 proc out_unit { func compdir ldir file ifsame } {
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index d4634c85725..435a6f8404f 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -2491,7 +2491,7 @@ proc default_gdb_spawn { } {
     global INTERNAL_GDBFLAGS GDBFLAGS
     global gdb_spawn_id
 
-    # Set the default value, it may be overriden later by specific testfile.
+    # Set the default value, it may be overridden later by specific testfile.
     #
     # Use `set_board_info use_gdb_stub' for the board file to flag the inferior
     # is already started after connecting and run/attach are not supported.
@@ -5241,7 +5241,7 @@ proc is_any_target {args} {
 #
 # This is the preferred way of checking use_gdb_stub, since it allows to check
 # the value before the gdb has been spawned and it will return the correct value
-# even when it was overriden by the test.
+# even when it was overridden by the test.
 #
 # Note that stub targets are not able to spawn new inferiors.  Use this
 # check for skipping respective tests.
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index a3546c551a6..c976fa11c77 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -131,7 +131,7 @@ proc mi_create_inferior_pty {} {
     }
 }
 
-# Create a new pty, and reate a new MI UI (using the new-ui command) on it.
+# Create a new pty, and create a new MI UI (using the new-ui command) on it.
 #
 # Return a list with the spawn id for that pty and the pty file name.
 
@@ -247,7 +247,7 @@ proc default_mi_gdb_start { { flags {} } } {
 	return [mi_gdb_start_separate_mi_tty $flags]
     }
 
-    # Set the default value, it may be overriden later by specific testfile.
+    # Set the default value, it may be overridden later by specific testfile.
     set use_gdb_stub [target_info exists use_gdb_stub]
 
     # Start SID.
diff --git a/gdb/testsuite/lib/prompt.exp b/gdb/testsuite/lib/prompt.exp
index a19a057e01c..51997b36690 100644
--- a/gdb/testsuite/lib/prompt.exp
+++ b/gdb/testsuite/lib/prompt.exp
@@ -32,7 +32,7 @@ proc default_prompt_gdb_start { } {
     global timeout
     global gdb_spawn_id
 
-    # Set the default value, it may be overriden later by specific testfile.
+    # Set the default value, it may be overridden later by specific testfile.
     #
     # Use `set_board_info use_gdb_stub' for the board file to flag the inferior
     # is already started after connecting and run/attach are not supported.


More information about the Gdb-cvs mailing list