aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
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/python
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/python')
-rw-r--r--gdb/python/py-auto-load.c8
-rw-r--r--gdb/python/py-connection.c2
-rw-r--r--gdb/python/py-disasm.c4
-rw-r--r--gdb/python/py-framefilter.c2
-rw-r--r--gdb/python/py-lazy-string.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c
index 9548973..7dc3a7b 100644
--- a/gdb/python/py-auto-load.c
+++ b/gdb/python/py-auto-load.c
@@ -61,8 +61,8 @@ gdbpy_initialize_auto_load (void)
{
add_setshow_boolean_cmd ("python-scripts", class_support,
&auto_load_python_scripts, _("\
-Set the debugger's behaviour regarding auto-loaded Python scripts."), _("\
-Show the debugger's behaviour regarding auto-loaded Python scripts."), _("\
+Set the debugger's behavior regarding auto-loaded Python scripts."), _("\
+Show the debugger's behavior regarding auto-loaded Python scripts."), _("\
If enabled, auto-loaded Python scripts are loaded when the debugger reads\n\
an executable or shared library.\n\
This options has security implications for untrusted inferiors."),
@@ -73,10 +73,10 @@ This options has security implications for untrusted inferiors."),
set_show_commands auto_load_scripts_cmds
= add_setshow_boolean_cmd ("auto-load-scripts", class_support,
&auto_load_python_scripts, _("\
-Set the debugger's behaviour regarding auto-loaded Python scripts, "
+Set the debugger's behavior regarding auto-loaded Python scripts, "
"deprecated."),
_("\
-Show the debugger's behaviour regarding auto-loaded Python scripts, "
+Show the debugger's behavior regarding auto-loaded Python scripts, "
"deprecated."),
NULL, NULL, show_auto_load_python_scripts,
&setlist, &showlist);
diff --git a/gdb/python/py-connection.c b/gdb/python/py-connection.c
index 1fdcd73..7b5146d 100644
--- a/gdb/python/py-connection.c
+++ b/gdb/python/py-connection.c
@@ -342,7 +342,7 @@ struct py_send_packet_callbacks : public send_remote_packet_callbacks
It is important that the result is inspected immediately after sending
a packet to the remote, and any error fetched, calling any other
Python functions that might clear the error state, or rely on an error
- not being set will cause undefined behaviour. */
+ not being set will cause undefined behavior. */
gdbpy_ref<> result () const
{
diff --git a/gdb/python/py-disasm.c b/gdb/python/py-disasm.c
index 58e2efe..66ed456 100644
--- a/gdb/python/py-disasm.c
+++ b/gdb/python/py-disasm.c
@@ -308,7 +308,7 @@ disasm_info_dealloc (PyObject *self)
NEXT is nullptr. */
Py_XDECREF ((PyObject *) obj->next);
- /* Now core deallocation behaviour. */
+ /* Now core deallocation behavior. */
Py_TYPE (self)->tp_free (self);
}
@@ -740,7 +740,7 @@ disasmpy_info_progspace (PyObject *self, void *closure)
part in the gdbpy_disassembler is a text part in the same STYLE, then
the new string is appended to the previous part.
- The merging behaviour make the Python API a little more user friendly,
+ The merging behavior make the Python API a little more user friendly,
some disassemblers produce their output character at a time, there's no
particular reason for this, it's just how they are implemented. By
merging parts with the same style we make it easier for the user to
diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c
index daec6dd..f165a48 100644
--- a/gdb/python/py-framefilter.c
+++ b/gdb/python/py-framefilter.c
@@ -762,7 +762,7 @@ py_print_frame (PyObject *filter, frame_filter_flags flags,
default value for the backtrace command (see the call to print_frame_info
in backtrace_command_1).
Having the same default ensures that 'bt' and 'bt no-filters'
- have the same behaviour when some filters exist but do not apply
+ have the same behavior when some filters exist but do not apply
to a frame. */
enum print_what print_what
= out->is_mi_like_p () ? LOC_AND_ADDRESS : LOCATION;
diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c
index 4898a1f..e61b80a 100644
--- a/gdb/python/py-lazy-string.c
+++ b/gdb/python/py-lazy-string.c
@@ -264,7 +264,7 @@ stpy_lazy_string_elt_type (lazy_string_object *lazy)
case TYPE_CODE_ARRAY:
return check_typedef (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;
}