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/infcall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/infcall.c') diff --git a/gdb/infcall.c b/gdb/infcall.c index 02e3b38..6399278 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -1834,7 +1834,7 @@ The program being debugged entered a std::terminate call, most likely\n\ caused by an unhandled C++ exception. GDB blocked this call in order\n\ to prevent the program from being terminated, and has restored the\n\ context to its original state before the call.\n\ -To change this behaviour use \"set unwind-on-terminating-exception off\".\n\ +To change this behavior use \"set unwind-on-terminating-exception off\".\n\ Evaluation of the expression containing the function (%s)\n\ will be abandoned."), name.c_str ()); -- cgit v1.1