]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/contrib] Handle capitalized words in spellcheck.sh
authorTom de Vries <tdevries@suse.de>
Wed, 13 Nov 2024 21:38:19 +0000 (22:38 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 13 Nov 2024 21:38:19 +0000 (22:38 +0100)
commit5cb0406bb64da200520ab3a9ee8f2a3c58ea6be0
tree02739297d2ffb812315ecc3ed18d8af3b2842ad1
parent74b9033e6f79dcc4947af7756c6e2aed96986504
[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 <kevinb@redhat.com>
13 files changed:
gdb/amd64-linux-nat.c
gdb/amd64-tdep.c
gdb/contrib/spellcheck.sh
gdb/i386-linux-nat.c
gdb/linux-tdep.c
gdb/m2-exp.y
gdb/m32r-linux-nat.c
gdb/m68k-linux-nat.c
gdb/or1k-linux-nat.c
gdb/target.h
gdb/testsuite/gdb.arch/arc-decode-insn.S
gdb/testsuite/gdb.cp/static-print-quit.exp
gdb/tilegx-linux-nat.c