aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
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/guile
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/guile')
-rw-r--r--gdb/guile/scm-auto-load.c4
-rw-r--r--gdb/guile/scm-lazy-string.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/guile/scm-auto-load.c b/gdb/guile/scm-auto-load.c
index 57550fa..ea87ab7 100644
--- a/gdb/guile/scm-auto-load.c
+++ b/gdb/guile/scm-auto-load.c
@@ -61,8 +61,8 @@ gdbscm_initialize_auto_load (void)
{
add_setshow_boolean_cmd ("guile-scripts", class_support,
&auto_load_guile_scripts, _("\
-Set the debugger's behaviour regarding auto-loaded Guile scripts."), _("\
-Show the debugger's behaviour regarding auto-loaded Guile scripts."), _("\
+Set the debugger's behavior regarding auto-loaded Guile scripts."), _("\
+Show the debugger's behavior regarding auto-loaded Guile scripts."), _("\
If enabled, auto-loaded Guile scripts are loaded when the debugger reads\n\
an executable or shared library.\n\
This options has security implications for untrusted inferiors."),
diff --git a/gdb/guile/scm-lazy-string.c b/gdb/guile/scm-lazy-string.c
index 94032ae..9f525fa 100644
--- a/gdb/guile/scm-lazy-string.c
+++ b/gdb/guile/scm-lazy-string.c
@@ -206,7 +206,7 @@ lsscm_elt_type (lazy_string_smob *ls_smob)
case TYPE_CODE_ARRAY:
return realtype->target_type ();
default:
- /* This is done to preserve existing behaviour. PR 20769.
+ /* This is done to preserve existing behavior. PR 20769.
E.g., gdb.parse_and_eval("my_int_variable").lazy_string().type. */
return realtype;
}