diff options
author | Tom de Vries <tdevries@suse.de> | 2024-11-23 12:20:34 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-11-23 12:20:34 +0100 |
commit | ac51afb51c00693bb19c6a6110e9a45d2e4f79b7 (patch) | |
tree | b2fcf9ded59d04633dbb406083e2814c34e4e468 /gdb/gdbthread.h | |
parent | 63eedf3b09f73077ecff2118f45d1adb1391eddd (diff) | |
download | gdb-ac51afb51c00693bb19c6a6110e9a45d2e4f79b7.zip gdb-ac51afb51c00693bb19c6a6110e9a45d2e4f79b7.tar.gz gdb-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/gdbthread.h')
-rw-r--r-- | gdb/gdbthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 73f6895..1011cf8 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -216,7 +216,7 @@ struct thread_suspend_state - If the thread is running, then this field has its value removed by calling stop_pc.reset() (see thread_info::set_executing()). Attempting to read a std::optional with no value is undefined - behaviour and will trigger an assertion error when _GLIBCXX_DEBUG is + behavior and will trigger an assertion error when _GLIBCXX_DEBUG is defined, which should make error easier to track down. */ std::optional<CORE_ADDR> stop_pc; }; |