[binutils-gdb] [gdb] Fix typos in some selftests

Tom de Vries vries@sourceware.org
Thu Mar 6 10:34:27 GMT 2025


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

commit 664c80701d1fa5e862475757769de6a66996ad20
Author: Tom de Vries <tdevries@suse.de>
Date:   Thu Mar 6 11:34:41 2025 +0100

    [gdb] Fix typos in some selftests
    
    Fix typos:
    ...
    figured on out -> figured one out
    fpr -> for
    hopefuly -> hopefully
    ...

Diff:
---
 gdb/disasm-selftests.c                   | 2 +-
 gdb/unittests/gmp-utils-selftests.c      | 6 +++---
 gdb/unittests/intrusive_list-selftests.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gdb/disasm-selftests.c b/gdb/disasm-selftests.c
index ffacf8b02af..97bda8d8828 100644
--- a/gdb/disasm-selftests.c
+++ b/gdb/disasm-selftests.c
@@ -29,7 +29,7 @@ namespace selftests {
    of the returned buffer.
 
    If there's no known instruction to disassemble for GDBARCH (because we
-   haven't figured on out, not because no instructions exist) then nullptr
+   haven't figured one out, not because no instructions exist) then nullptr
    is returned, and *LEN is set to 0.  */
 
 static const gdb_byte *
diff --git a/gdb/unittests/gmp-utils-selftests.c b/gdb/unittests/gmp-utils-selftests.c
index f8f978179ea..699693c212b 100644
--- a/gdb/unittests/gmp-utils-selftests.c
+++ b/gdb/unittests/gmp-utils-selftests.c
@@ -155,7 +155,7 @@ gdb_mpz_as_integer_out_of_range ()
    to provide a bit more information about the kind of values
    that were used when the check failed.  This makes the writing
    of the tests a little more verbose, but the debugging in case
-   of problems should hopefuly be easier.  */
+   of problems should hopefully be easier.  */
 
 template<typename T>
 void
@@ -287,7 +287,7 @@ gdb_mpz_read_min_max ()
    to provide a bit more information about the kind of values
    that were used when the check failed.  This makes the writing
    of the tests a little more verbose, but the debugging in case
-   of problems should hopefuly be easier.  */
+   of problems should hopefully be easier.  */
 
 template<typename T>
 T
@@ -384,7 +384,7 @@ gdb_mpz_write_min_max ()
    to provide a bit more information about the kind of values
    that were used when the check failed.  This makes the writing
    of the tests a little more verbose, but the debugging in case
-   of problems should hopefuly be easier.  */
+   of problems should hopefully be easier.  */
 
 static void
 read_fp_test (int unscaled, const gdb_mpq &scaling_factor,
diff --git a/gdb/unittests/intrusive_list-selftests.c b/gdb/unittests/intrusive_list-selftests.c
index fbd89ed8c91..0bcfa624ce5 100644
--- a/gdb/unittests/intrusive_list-selftests.c
+++ b/gdb/unittests/intrusive_list-selftests.c
@@ -1,4 +1,4 @@
-/* Tests fpr intrusive double linked list for GDB, the GNU debugger.
+/* Tests for intrusive double linked list for GDB, the GNU debugger.
    Copyright (C) 2021-2024 Free Software Foundation, Inc.
 
    This file is part of GDB.


More information about the Gdb-cvs mailing list