aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/read1.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-11-23 12:20:34 +0100
committerTom de Vries <tdevries@suse.de>2024-11-23 12:20:34 +0100
commitac51afb51c00693bb19c6a6110e9a45d2e4f79b7 (patch)
treeb2fcf9ded59d04633dbb406083e2814c34e4e468 /gdb/testsuite/lib/read1.c
parent63eedf3b09f73077ecff2118f45d1adb1391eddd (diff)
downloadbinutils-ac51afb51c00693bb19c6a6110e9a45d2e4f79b7.zip
binutils-ac51afb51c00693bb19c6a6110e9a45d2e4f79b7.tar.gz
binutils-ac51afb51c00693bb19c6a6110e9a45d2e4f79b7.tar.bz2
[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
Diffstat (limited to 'gdb/testsuite/lib/read1.c')
-rw-r--r--gdb/testsuite/lib/read1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/read1.c b/gdb/testsuite/lib/read1.c
index e449717..29570c9 100644
--- a/gdb/testsuite/lib/read1.c
+++ b/gdb/testsuite/lib/read1.c
@@ -62,7 +62,7 @@ init_readmore (int *method, unsigned int *sleep, FILE **log)
*log = fopen (env, "w");
}
-/* Wrap 'read', and modify it's behaviour using READ1 or READMORE style. */
+/* Wrap 'read', and modify it's behavior using READ1 or READMORE style. */
ssize_t
read (int fd, void *buf, size_t count)
@@ -89,7 +89,7 @@ read (int fd, void *buf, size_t count)
init_readmore (&readmore_method, &readmore_sleep, &log);
}
- /* Only modify 'read' behaviour when reading from the terminal. */
+ /* Only modify 'read' behavior when reading from the terminal. */
if (isatty (fd) == 0)
goto fallback;