From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6eAXOCvUJGmKjCoAWB0awg (envelope-from ) for ; Mon, 24 Nov 2025 16:54:51 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=KM+3L47G; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E12E01E048; Mon, 24 Nov 2025 16:54:51 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D172B1E048 for ; Mon, 24 Nov 2025 16:54:50 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7372A3858421 for ; Mon, 24 Nov 2025 21:54:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7372A3858421 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=KM+3L47G Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id E693A3858406 for ; Mon, 24 Nov 2025 21:54:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E693A3858406 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E693A3858406 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764021257; cv=none; b=ri8aLy4Ygd2DyLenCyrdwKv4JxZs28WZ+WLXn7sSDK7TDl6lpMHEL2UhkXe2eZfWVnqbXDwNB2I/873kzUUxHYJt7ZtGbg7P69IYd/fqg24bmMKUtr/I9VebX9EYBaCN4NMx1oqvbdCXT2LVHJhNuvMdcYCBz0PZFuffy4lH92E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764021257; c=relaxed/simple; bh=/9h3hUsfpHWlbDyH12DcDaP/q7kPyKo8revyM6hIz6E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=POQIDrkv5Hy+jt85HKH+LPKVUAwyCcEaNN6VPbr2TIOl6vKAhYejcaqS5p+lM2fiWZdXSRkHV8vFAFN/1swLd0WKI8B8o7UNBwgYlQRWQ14Qqg6ovLDlBJk9gUQQku+RXfNloakxSD8b3Z8RDHz6BhqxKL1DWCezk2TXXSogfQs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E693A3858406 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 5AOLsAc7189390 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Nov 2025 16:54:15 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 5AOLsAc7189390 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1764021255; bh=sVloLnoWMq+hn3tzGa/pIDPWhI3hXWgPeMFK3Plx3Ws=; h=From:To:Cc:Subject:Date:From; b=KM+3L47GknQjtecS6arpkHlFqvbVRvzTmwtOGlTTRRI5ehHUhMOZF0FG+t11xSPWD md5h53hcUiel67JvB1SF8gvD6zLfEtttFpXywGD2cxlNhpnCg3/cSnwm3i+JmjYEyJ JbYN8Wrm1qMeEbZd+4lMEm+SzxQ1c+fmOnDvD/nbL8HNVhoATQW7uraAai0FrNx7Ev IhSLD3QjHAkLrxHccUWpRzg7QuGIrnHyMIOhoZsDSf1DHFj3ewn8L9NGiOZh8BIlwc gzb73x3d1mlEUJE5gg6TodBXQaczKE8gefZ/+2yeZvaKmaUHpT47FNNexaQeAzbm7B kzl9AbwnnJ20Q== Received: by simark.ca (Postfix) id 694641E048; Mon, 24 Nov 2025 16:54:10 -0500 (EST) From: simon.marchi@polymtl.ca To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH] gdb/testsuite: fix a few typos Date: Mon, 24 Nov 2025 16:54:01 -0500 Message-ID: <20251124215409.3761464-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.52.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 24 Nov 2025 21:54:10 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: Simon Marchi When merging the big "whitespace fix" commit in a downstream repo, pre-commit/codespell identified a lot of typos, fix a few of them. Change-Id: Ie898e9903daa4e6e0e49a623891a739071e91392 --- gdb/testsuite/gdb.base/ctf-ptype.exp | 2 +- gdb/testsuite/gdb.base/fileio.c | 12 +++---- gdb/testsuite/gdb.base/ptype.exp | 2 +- .../gdb.dwarf2/ada-valprint-error.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp | 2 +- gdb/testsuite/gdb.python/py-explore.exp | 32 +++++++++---------- gdb/testsuite/lib/gdb.exp | 2 +- 7 files changed, 27 insertions(+), 27 deletions(-) diff --git a/gdb/testsuite/gdb.base/ctf-ptype.exp b/gdb/testsuite/gdb.base/ctf-ptype.exp index 8baefdc005eb..daa9283775e8 100644 --- a/gdb/testsuite/gdb.base/ctf-ptype.exp +++ b/gdb/testsuite/gdb.base/ctf-ptype.exp @@ -207,7 +207,7 @@ gdb_test "ptype the_highest" \ "type = struct highest \{.*\[\r\n\] *int a;.*\[\r\n\] *struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{\.\.\.\} anonymous_level_2;.*\[\r\n\] *\} anonymous_level_1;.*\[\r\n\]}.*" \ "ptype the_highest" -# Print the type descrption for one of the fields of variable the_highest. +# Print the type description for one of the fields of variable the_highest. # The purpose is to verify that the type of a field that was printed above # as "struct {...}" is now printed in a more descriptive way (because the # nesting level is now one level less). diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c index 37337ef41e77..0ef85a26bee5 100644 --- a/gdb/testsuite/gdb.base/fileio.c +++ b/gdb/testsuite/gdb.base/fileio.c @@ -65,7 +65,7 @@ static const char *strerrno (int err); /* Note that OUTDIR is defined by the test suite. */ #define FILENAME "foo.fileio.test" #define RENAMED "bar.fileio.test" -#define NONEXISTANT "nofoo.fileio.test" +#define NONEXISTENT "nofoo.fileio.test" #define NOWRITE "nowrt.fileio.test" #define TESTDIR1 "dir1.fileio.test" #define TESTDIR2 "dir2.fileio.test" @@ -115,7 +115,7 @@ test_open (void) stop (); /* Opening nonexistant file */ errno = 0; - ret = open (NONEXISTANT, O_RDONLY); + ret = open (NONEXISTENT, O_RDONLY); printf ("open 4: ret = %d, errno = %d %s\n", ret, errno, strerrno (errno)); if (ret >= 0) @@ -311,9 +311,9 @@ test_stat (void) printf ("stat 3: ret = %d, errno = %d %s\n", ret, errno, strerrno (errno)); stop (); - /* Nonexistant file */ + /* Nonexistent file */ errno = 0; - ret = stat (NONEXISTANT, &st); + ret = stat (NONEXISTENT, &st); printf ("stat 4: ret = %d, errno = %d %s\n", ret, errno, strerrno (errno)); stop (); @@ -459,7 +459,7 @@ test_rename (void) stop (); /* oldpath does not exist */ errno = 0; - ret = rename (OUTDIR NONEXISTANT, OUTDIR FILENAME); + ret = rename (OUTDIR NONEXISTENT, OUTDIR FILENAME); printf ("rename 5: ret = %d, errno = %d %s\n", ret, errno, strerrno (errno)); stop (); @@ -501,7 +501,7 @@ test_unlink (void) stop (); /* pathname doesn't exist */ errno = 0; - ret = unlink (OUTDIR NONEXISTANT); + ret = unlink (OUTDIR NONEXISTENT); printf ("unlink 3: ret = %d, errno = %d %s\n", ret, errno, strerrno (errno)); stop (); diff --git a/gdb/testsuite/gdb.base/ptype.exp b/gdb/testsuite/gdb.base/ptype.exp index cf28aea2f51e..ae52d1b2ef0e 100644 --- a/gdb/testsuite/gdb.base/ptype.exp +++ b/gdb/testsuite/gdb.base/ptype.exp @@ -499,7 +499,7 @@ gdb_test "ptype nested_su.inner_union_instance" "type = union inner_union \{.*\[ gdb_test "ptype the_highest" \ "type = struct highest \{.*\[\r\n\] *int a;.*\[\r\n\] *struct \{.*\[\r\n\] *int b;.*\[\r\n\] *struct \{\.\.\.\} anonymous_level_2;.*\[\r\n\] *\} anonymous_level_1;.*\[\r\n\]}.*" -# Print the type descrption for one of the fields of variable the_highest. +# Print the type description for one of the fields of variable the_highest. # The purpose is to verify that the type of a field that was printed above # as "struct {...}" is now printed in a more descriptive way (because the # nesting level is now one level less). diff --git a/gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp b/gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp index 1bc9fbde643d..05b5752324f7 100644 --- a/gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp +++ b/gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp @@ -45,7 +45,7 @@ Dwarf::assemble $asm_file { set ptr_size [get_sizeof "void *" 96] set int_size [get_sizeof "int" 4] - # A structure with no size attribute, to mimick structures + # A structure with no size attribute, to mimic structures # in Ada that have a dynamic size... array_elt_label: structure_type { DW_AT_name fd__Tints_doubledC diff --git a/gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp b/gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp index cbffbba01dac..d4f49a779119 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp @@ -207,7 +207,7 @@ gdb_test "print pck.fp1_var >= pck.fp1_var" \ gdb_test "print pck.fp1_var >= pck.fp1_var2" \ " = false" -# Same as above, but with litterals... +# Same as above, but with literals... gdb_test "print pck.fp1_var = 0.25" \ " = true" diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp index 3d948d64bbc7..102355e8a552 100644 --- a/gdb/testsuite/gdb.python/py-explore.exp +++ b/gdb/testsuite/gdb.python/py-explore.exp @@ -263,9 +263,9 @@ gdb_test "explore int" ".*[scalar_type_decsription {int}].*" gdb_test_multiple "explore struct SimpleStruct" "" { -re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" { pass "explore struct SimpleStruct" - gdb_test_multiple "0" "explore type struct SimpleStruct feild 0" { + gdb_test_multiple "0" "explore type struct SimpleStruct field 0" { -re ".*[child_scalar_type_description {field 'a' of 'struct SimpleStruct'} {int}].*" { - pass "explore type struct SimpleStruct feild 0" + pass "explore type struct SimpleStruct field 0" gdb_test_multiple "\0" "return to struct SimpleStruct from field 0" { -re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" { pass "return to struct SimpleStruct from field 0" @@ -273,9 +273,9 @@ gdb_test_multiple "explore struct SimpleStruct" "" { } } } - gdb_test_multiple "1" "explore type struct SimpleStruct feild 1" { + gdb_test_multiple "1" "explore type struct SimpleStruct field 1" { -re ".*[child_scalar_type_description {field 'd' of 'struct SimpleStruct'} {double}].*" { - pass "explore type struct SimpleStruct feild 1" + pass "explore type struct SimpleStruct field 1" gdb_test_multiple "\0" "return to struct SimpleStruct from field 1" { -re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" { pass "return to struct SimpleStruct from field 1" @@ -294,9 +294,9 @@ gdb_test_multiple "explore struct SimpleStruct" "" { gdb_test_multiple "explore union SimpleUnion" "" { -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" { pass "explore union SimpleUnion" - gdb_test_multiple "0" "explore type union SimpleUnion feild 0" { + gdb_test_multiple "0" "explore type union SimpleUnion field 0" { -re ".*[child_scalar_type_description {field 'i' of 'union SimpleUnion'} {int}].*" { - pass "explore type union SimpleUnion feild 0" + pass "explore type union SimpleUnion field 0" gdb_test_multiple "\0" "return to union SimpleUnion from field 0" { -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" { pass "return to union SimpleUnion from field 0" @@ -304,9 +304,9 @@ gdb_test_multiple "explore union SimpleUnion" "" { } } } - gdb_test_multiple "1" "explore type union SimpleUnion feild 1" { + gdb_test_multiple "1" "explore type union SimpleUnion field 1" { -re ".*[child_scalar_type_description {field 'c' of 'union SimpleUnion'} {char}].*" { - pass "explore type union SimpleUnion feild 1" + pass "explore type union SimpleUnion field 1" gdb_test_multiple "\0" "return to union SimpleUnion from field 1" { -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" { pass "return to union SimpleUnion from field 1" @@ -314,9 +314,9 @@ gdb_test_multiple "explore union SimpleUnion" "" { } } } - gdb_test_multiple "2" "explore type union SimpleUnion feild 2" { + gdb_test_multiple "2" "explore type union SimpleUnion field 2" { -re ".*[child_scalar_type_description {field 'f' of 'union SimpleUnion'} {float}].*" { - pass "explore type union SimpleUnion feild 2" + pass "explore type union SimpleUnion field 2" gdb_test_multiple "\0" "return to union SimpleUnion from field 2" { -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" { pass "return to union SimpleUnion from field 2" @@ -324,9 +324,9 @@ gdb_test_multiple "explore union SimpleUnion" "" { } } } - gdb_test_multiple "3" "explore type union SimpleUnion feild 3" { + gdb_test_multiple "3" "explore type union SimpleUnion field 3" { -re ".*[child_scalar_type_description {field 'd' of 'union SimpleUnion'} {double}].*" { - pass "explore type union SimpleUnion feild 3" + pass "explore type union SimpleUnion field 3" gdb_test_multiple "\0" "return to union SimpleUnion from field 3" { -re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" { pass "return to union SimpleUnion from field 3" @@ -345,9 +345,9 @@ gdb_test_multiple "explore union SimpleUnion" "" { gdb_test_multiple "explore SS" "" { -re ".*[typedef_type_description {SS} $SS].*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" { pass "explore SS" - gdb_test_multiple "0" "explore type SS feild 0" { + gdb_test_multiple "0" "explore type SS field 0" { -re ".*[child_scalar_type_description {field 'a' of 'SS'} {int}].*" { - pass "explore type SS feild 0" + pass "explore type SS field 0" gdb_test_multiple "\0" "return to SS from field 0" { -re ".*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" { pass "return to SS from field 0" @@ -355,9 +355,9 @@ gdb_test_multiple "explore SS" "" { } } } - gdb_test_multiple "1" "explore type SS feild 1" { + gdb_test_multiple "1" "explore type SS field 1" { -re ".*[child_scalar_type_description {field 'd' of 'SS'} {double}].*" { - pass "explore type SS feild 1" + pass "explore type SS field 1" gdb_test_multiple "\0" "return to struct SimpleStruct from field 1" { -re ".*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" { pass "return to SS field 1" diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 82bb511bccc9..366eff3ca329 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -6425,7 +6425,7 @@ proc gdb_compile {source dest type options} { } } elseif { $opt == "column-info" } { # If GCC or clang does not support column-info, compilation - # will fail and the usupported column-info option will be + # will fail and the unsupported column-info option will be # reported as such. if {[test_compiler_info {gcc-*}]} { lappend new_options "additional_flags=-gcolumn-info" base-commit: 500806dc2a341c0f2e36baf5a379a0b578b2ee2f -- 2.52.0