]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/contrib] Add missing copyright notices
authorTom de Vries <tdevries@suse.de>
Mon, 1 Jun 2026 12:53:36 +0000 (14:53 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 1 Jun 2026 12:53:36 +0000 (14:53 +0200)
I found a few files in gdb/contrib that were missing a copyright notice.

In codespell-ignore-words.txt, it was trivial to add, but I found a
codespell issue stating that it's not explicitly support, so I added a note
about that.

In codespell-dictionary.txt, I had to resort to a hack, using an "empty word"
rewrite rule:
...
-># Comment here.
...

Also, I found that empty lines are not allowed in codespell-dictionary.txt.  I
filed an issue about these two problems [1].

Since these two files were added in 2025, I've used 2025-2026 as copyright
years.

Tested by running "pre-commit run --all-files".

[1] https://github.com/codespell-project/codespell/issues/3901

gdb/contrib/codespell-dictionary.txt
gdb/contrib/codespell-ignore-words.txt

index 70914421cbf96a419a6b2261f2217df3f6da7bca..b02e6eb199753063830846fd7075f05d479527d1 100644 (file)
@@ -1,3 +1,26 @@
+-># Copyright (C) 2025-2026 Free Software Foundation, Inc.
+-># This program is free software; you can redistribute it and/or modify
+-># it under the terms of the GNU General Public License as published by
+-># the Free Software Foundation; either version 3 of the License, or
+-># (at your option) any later version.
+->#
+-># This program is distributed in the hope that it will be useful,
+-># but WITHOUT ANY WARRANTY; without even the implied warranty of
+-># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-># GNU General Public License for more details.
+->#
+-># You should have received a copy of the GNU General Public License
+-># along with this program.  If not, see <http://www.gnu.org/licenses/>.
+->#
+-># Hack: comments are not supported in this file, so instead use a rule
+-># rewriting an empty word.  This hack may stop working after a codespell
+-># update.
+->#
+-># Note: empty lines are not supported either.
+->#
+-># I've filed an issue about these two problems [1].
+->#
+-># [1] https://github.com/codespell-project/codespell/issues/3901
 gdbsever->gdbserver
 tcllint->tclint
 recordered->recorded
index 0594fc39a45e7d303799e280eb88d3fe9c2de1b0..4a409d0aed17faa511aa818bca6718616aa2fddf 100644 (file)
@@ -1,3 +1,24 @@
+# Copyright (C) 2025-2026 Free Software Foundation, Inc.
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Note: comments are not explicitly supported in this file [1], but using them
+# doesn't seem to cause problems.
+#
+# Note: empty lines do seem to work here (unlike in codespell-dictionary.txt).
+#
+# [1] https://github.com/codespell-project/codespell/issues/2063
+
 configury
 sme
 Synopsys