aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-04-03 12:11:15 -0600
committerTom Tromey <tom@tromey.com>2025-04-03 21:05:12 -0600
commitc619da1a22fcc67654b6c7860272aa2ce5deadaa (patch)
tree150dc81eff16c38c16434e6d917b2bdfb1b25e57 /gdb
parentba310c98c8f21a6281b8b01c18ca015d3799532e (diff)
downloadbinutils-c619da1a22fcc67654b6c7860272aa2ce5deadaa.zip
binutils-c619da1a22fcc67654b6c7860272aa2ce5deadaa.tar.gz
binutils-c619da1a22fcc67654b6c7860272aa2ce5deadaa.tar.bz2
Make gdb/guile codespell-clean
This cleans up the last codespell reports in the Guile directory and adds gdb/guile to pre-commit. It also tells codespell to ignore URLs. I think this is warranted because many URLs don't really contain words per se; and furthermore if any URL-checking is needed at all, it would be for liveness and not spelling. Also I was wondering why the codespell config is in contrib and not gdb/setup.cfg. Approved-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/contrib/setup.cfg3
-rw-r--r--gdb/guile/scm-value.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/contrib/setup.cfg b/gdb/contrib/setup.cfg
index dbff165..670a850 100644
--- a/gdb/contrib/setup.cfg
+++ b/gdb/contrib/setup.cfg
@@ -4,3 +4,6 @@
skip = */ChangeLog*,*/configure,gdbsupport/Makefile.in,*.dat,*.eps,gdb/features/*.c,gdb/ada-casefold.h,gdb/copying.c,gdb/gdbarch-gen.h,gdb/gdbarch-gen.c,gdb/target-delegates-gen.c
ignore-words = gdb/contrib/codespell-ignore-words.txt
+
+# Ignore all URLs.
+uri-ignore-words-list = *
diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c
index 0f4a6a4..88132e0 100644
--- a/gdb/guile/scm-value.c
+++ b/gdb/guile/scm-value.c
@@ -604,7 +604,7 @@ gdbscm_value_dynamic_type (SCM self)
type = value_rtti_type (value, NULL, NULL, NULL);
else
{
- /* Re-use object's static type. */
+ /* Reuse object's static type. */
type = NULL;
}
}