From ac51afb51c00693bb19c6a6110e9a45d2e4f79b7 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 23 Nov 2024 12:20:34 +0100 Subject: [gdb/contrib] Add two rules in common-misspellings.txt Eli mentioned [1] that given that we use US English spelling in our documentation, we should use "behavior" instead of "behaviour". In wikipedia-common-misspellings.txt there's a rule: ... behavour->behavior, behaviour ... which leaves this as a choice. Add an overriding rule to hardcode the choice to common-misspellings.txt: ... behavour->behavior ... and add a rule to rewrite behaviour into behavior: ... behaviour->behavior ... and re-run spellcheck.sh on gdb*. Tested on x86_64-linux. [1] https://sourceware.org/pipermail/gdb-patches/2024-November/213371.html --- gdb/testsuite/gdb.threads/slow-waitpid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite/gdb.threads/slow-waitpid.c') diff --git a/gdb/testsuite/gdb.threads/slow-waitpid.c b/gdb/testsuite/gdb.threads/slow-waitpid.c index 25052c3..280b109 100644 --- a/gdb/testsuite/gdb.threads/slow-waitpid.c +++ b/gdb/testsuite/gdb.threads/slow-waitpid.c @@ -19,7 +19,7 @@ using the LD_PRELOAD technique. The library intercepts calls to WAITPID and SIGSUSPEND in order to - simulate the behaviour of a heavily loaded kernel. + simulate the behavior of a heavily loaded kernel. When GDB wants to stop all threads in an inferior each thread is sent a SIGSTOP, GDB will then wait for the signal to be received by the thread @@ -39,7 +39,7 @@ The idea in this library is to rate limit calls to waitpid (where pid is -1 and the WNOHANG option is set) so that only 1 per second can return an answer. Any additional calls will report that no threads are - currently ready. This should match the behaviour we see on a slow + currently ready. This should match the behavior we see on a slow kernel. However, given that usually when using this library, the kernel does -- cgit v1.1