From 5cb0406bb64da200520ab3a9ee8f2a3c58ea6be0 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 13 Nov 2024 22:38:19 +0100 Subject: [gdb/contrib] Handle capitalized words in spellcheck.sh The dictionary contains a few entries with capital letters: ... $ grep -E '[A-Z]' .git/wikipedia-common-misspellings.txt | wc -l 143 ... but they don't look too interesting in the gdb context (for instance, Habsbourg->Habsburg), so filter them out. That leaves us with entries looking only like "foobat->foobar", so add handling of capitalized words, such that we also rewrite "Foobat" to "Foobar". Tested on aarch64-linux. Verified with shellcheck. Approved-by: Kevin Buettner --- gdb/testsuite/gdb.arch/arc-decode-insn.S | 2 +- gdb/testsuite/gdb.cp/static-print-quit.exp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/gdb.arch/arc-decode-insn.S b/gdb/testsuite/gdb.arch/arc-decode-insn.S index ea37455..6b37d54 100644 --- a/gdb/testsuite/gdb.arch/arc-decode-insn.S +++ b/gdb/testsuite/gdb.arch/arc-decode-insn.S @@ -394,7 +394,7 @@ start_branch_tests: #ifdef TEST_B .Lb_target: - ; Artifical nop, so that first b will not branch to itself. + ; Artificial nop, so that first b will not branch to itself. nop_s ; b s25 .set b_s25_target, @.Lb_target diff --git a/gdb/testsuite/gdb.cp/static-print-quit.exp b/gdb/testsuite/gdb.cp/static-print-quit.exp index 109bf8d..7236439 100644 --- a/gdb/testsuite/gdb.cp/static-print-quit.exp +++ b/gdb/testsuite/gdb.cp/static-print-quit.exp @@ -55,7 +55,7 @@ gdb_test_multiple "" $test { gdb_test "q" ".*" -# Now the obstack is uninitialized. Excercise it. +# Now the obstack is uninitialized. Exercise it. gdb_test_no_output "set pagination off" gdb_test "print c" ".*" "first print" -- cgit v1.1