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/amd64-linux-nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/amd64-linux-nat.c') diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c index 742fc81..c3b7a19 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c @@ -90,7 +90,7 @@ static int amd64_linux_gregset32_reg_offset[] = }; -/* Transfering the general-purpose registers between GDB, inferiors +/* Transferring the general-purpose registers between GDB, inferiors and core files. */ /* See amd64_collect_native_gregset. This linux specific version handles @@ -178,7 +178,7 @@ fill_gregset (const struct regcache *regcache, amd64_linux_collect_native_gregset (regcache, gregsetp, regnum); } -/* Transfering floating-point registers between GDB, inferiors and cores. */ +/* Transferring floating-point registers between GDB, inferiors and cores. */ /* Fill GDB's register cache with the floating-point and SSE register values in *FPREGSETP. */ -- cgit v1.1