aboutsummaryrefslogtreecommitdiff
path: root/gdb/copyright.py
AgeCommit message (Collapse)AuthorFilesLines
2024-01-12Update copyright year range in header of all files managed by GDBAndrew Burgess1-1/+1
This commit is the result of the following actions: - Running gdb/copyright.py to update all of the copyright headers to include 2024, - Manually updating a few files the copyright.py script told me to update, these files had copyright headers embedded within the file, - Regenerating gdbsupport/Makefile.in to refresh it's copyright date, - Using grep to find other files that still mentioned 2023. If these files were updated last year from 2022 to 2023 then I've updated them this year to 2024. I'm sure I've probably missed some dates. Feel free to fix them up as you spot them.
2023-06-21Add missing backslash to update-gnulib.shTom Tromey1-0/+2
A user on irc noticed a missing backslash on one line in update-gnulib.sh. This patch adds it. Re-running update-gnulib.sh causes a few copyright notices to change. Presumably these are from upstream gnulib and shouldn't be touched by our yearly update. I've updated the script to account for this, but I did not want to try testing it...
2023-01-01Update copyright year range in header of all files managed by GDBJoel Brobecker1-1/+1
This commit is the result of running the gdb/copyright.py script, which automated the update of the copyright year range for all source files managed by the GDB project to be updated to include year 2023.
2023-01-01gdb/copyright.py: Adjust following rename of sim/ppc/ppc-instructions...Joel Brobecker1-1/+1
... to sim/ppc/powerpc.igen This file is in the NOT_FSF_LIST because this file has a copyright which is not assigned to the FSF. Since the file got renamed, the corresponding entry in NOT_FSF_LIST needs to be renamed as well.
2022-10-26gdb: copyright: make file header scan a bit more pythonicMike Frysinger1-9/+6
Should be functionally the same, but uses more pythonic idioms to get fewer lines of code, and to make sure to not leak open file handles. Approved-By: Simon Marchi <simon.marchi@efficios.com>
2022-10-26gdb: make copyright.py interface a bit nicerMike Frysinger1-5/+16
This way people can run `./copyright.py --help` and get some info as to what this does without it going and modifying the tree.
2022-03-02Move copyright code from gdbarch.py to new fileTom Tromey1-1/+0
This moves the copyright code from gdbarch.py to a new Python source file, gdbcopyright.py. The function in this file will find the copyright dates by scanning the calling script. This will be reused in a future patch. This involved minor changes to the output of gdbarch.py. Also, I've updated copyright.py to remove the reference to gdbarch.sh. We don't need to mention gdbarch.py there, either.
2022-01-16gdb/copyright.py: Do not update gdbsupport/Makefile.inJoel Brobecker1-0/+1
This file is generated, so we should not modify it (any modification we make is going to be undone at the next re-generation anyway).
2022-01-01gdb: copyright: fix a few comment typosMike Frysinger1-2/+2
2022-01-01gdb: update sim mips testsuite copyright exemptionMike Frysinger1-1/+1
The sim testsuite was reorganized last year, so update the path.
2022-01-01gdb/copyright.py: Add update-netbsd.sh to MULTIPLE_COPYRIGHT_HEADERSJoel Brobecker1-0/+1
Add gdb/syscalls/update-netbsd.sh to the reminder printed at the end of the execution listing all the files where a manual update of the copyright header is needed. This scripts contains some inline code which includes a copyright header.
2022-01-01Automatic Copyright Year update after running gdb/copyright.pyJoel Brobecker1-1/+1
This commit brings all the changes made by running gdb/copyright.py as per GDB's Start of New Year Procedure. For the avoidance of doubt, all changes in this commits were performed by the script.
2021-05-07gdb: re-format Python files using black 21.4b0Simon Marchi1-83/+206
Re-format all Python files using black [1] version 21.4b0. The goal is that from now on, we keep all Python files formatted using black. And that we never have to discuss formatting during review (for these files at least) ever again. One change is needed in gdb.python/py-prettyprint.exp, because it matches the string representation of an exception, which shows source code. So the change in formatting must be replicated in the expected regexp. To document our usage of black I plan on adding this to the "GDB Python Coding Standards" wiki page [2]: --8<-- All Python source files under the `gdb/` directory must be formatted using black version 21.4b0. This specific version can be installed using: $ pip3 install 'black == 21.4b0' All you need to do to re-format files is run `black <file/directory>`, and black will re-format any Python file it finds in there. It runs quite fast, so the simplest is to do: $ black gdb/ from the top-level. If you notice that black produces changes unrelated to your patch, it's probably because someone forgot to run it before you. In this case, don't include unrelated hunks in your patch. Push an obvious patch fixing the formatting and rebase your work on top of that. -->8-- Once this is merged, I plan on setting a up an `ignoreRevsFile` config so that git-blame ignores this commit, as described here: https://github.com/psf/black#migrating-your-code-style-without-ruining-git-blame I also plan on working on a git commit hook (checked in the repo) to automatically check the formatting of the Python files on commit. [1] https://pypi.org/project/black/ [2] https://sourceware.org/gdb/wiki/Internals%20GDB-Python-Coding-Standards gdb/ChangeLog: * Re-format all Python files using black. gdb/testsuite/ChangeLog: * Re-format all Python files using black. * gdb.python/py-prettyprint.exp (run_lang_tests): Adjust. Change-Id: I28588a22c2406afd6bc2703774ddfff47cd61919
2021-01-18sim: bfin: delete accidental ADI copyrightMike Frysinger1-1/+1
This wasn't supposed to be in here when it was first merged as we had specifically disabled it for all the tests (and ADI has papers in place w/the FSF). Clean up this one.
2021-01-01Update copyright year range in all GDB filesJoel Brobecker1-1/+1
This commits the result of running gdb/copyright.py as per our Start of New Year procedure... gdb/ChangeLog Update copyright year range in copyright header of all GDB files.
2021-01-01gdb/copyright.py: Also update sources in "gdbserver" and "gdbsupport"Joel Brobecker1-1/+3
This commit adjusts GDB's copyright.py script, following two past changes: - gdb/gdbserver/ being move to the toplevel directory; - gdb/common/ being renamed to gdbsupport/. gdb/ChangeLog: * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport" to the list of directories to update.
2020-02-25gdb/copyright.py: Add generated files in gnulib/ to exclude listJoel Brobecker1-1/+3
This will prevent this script from updating the copyright year range for those files. Note that aclocal.m4 and configure are already in the EXCLUDE_ALL_LIST, so they don't need to be added to the EXCLUDE_LIST. gdb/ChangeLog: * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and 'gnulib/Makefile.in' to the list.
2020-01-01Update copyright year range in all GDB files.Joel Brobecker1-1/+1
gdb/ChangeLog: Update copyright year range in all GDB files.
2020-01-01gdb/copyright.py: Convert to Python 3Joel Brobecker1-16/+20
gdb/ChangeLog: * copyright.py: Convert to Python 3.
2020-01-01gdb/copyright.py: Adapt after move of gnulib from gdb to toplevelJoel Brobecker1-7/+8
gdb/ChangeLog: * copyright.py: Adapt after move of gnulib directory from gdb directory to toplevel directory.
2020-01-01gdb/copyright.py: Exit if run from the wrong directoryJoel Brobecker1-0/+3
We printed an error, but kept going anyway... ;-) gdb/ChangeLog: * copyright.py (main): Exit if run from the wrong directory.
2019-01-01Update copyright year range in all GDB files.Joel Brobecker1-1/+1
This commit applies all changes made after running the gdb/copyright.py script. Note that one file was flagged by the script, due to an invalid copyright header (gdb/unittests/basic_string_view/element_access/char/empty.cc). As the file was copied from GCC's libstdc++-v3 testsuite, this commit leaves this file untouched for the time being; a patch to fix the header was sent to gcc-patches first. gdb/ChangeLog: Update copyright year range in all GDB files.
2018-01-02Update copyright year range in all GDB filesJoel Brobecker1-1/+1
gdb/ChangeLog: Update copyright year range in all GDB files
2018-01-02gdb/copyright.py: Remove testsuite/gdb.base/step-line.{c,inp} special handlingJoel Brobecker1-3/+1
In the past, these files needed to be handled by hand, because the testcase was sensitive to the length of the header, which was potentially changing when new copyright years were added to the copyright header. Now that we simply maintain and update a range, the length of the copyright header should not change as a consequence of the update performed by this script, so special handling of those files is no longer necessary. gdb/ChangeLog: * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp and gdb/testsuite/gdb.base/step-line.c.
2018-01-02gdb/copyright.py: Do not forget to remind about MULTIPLE_COPYRIGHT_HEADERSJoel Brobecker1-1/+10
There is a small logical error in the part of the script that dumps the list of files in BY_HAND + MULTIPLE_COPYRIGHT_HEADERS but only checkis the contents of BY_HAND. The issue becomes apparent as soon as BY_HAND is empty. Prevent this from happening by treating the two lists separately, as this allows us to provide a more informative message in the case of MULTIPLE_COPYRIGHT_HEADERS. gdb/ChangeLog: * copyright.py (main): Dump the contents of MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, even if BY_HAND is empty.
2017-01-01update copyright year range in GDB filesJoel Brobecker1-1/+1
This applies the second part of GDB's End of Year Procedure, which updates the copyright year range in all of GDB's files. gdb/ChangeLog: Update copyright year range in all GDB files.
2016-01-01GDB copyright headers update after running GDB's copyright.py script.Joel Brobecker1-1/+1
gdb/ChangeLog: Update year range in copyright notice of all files.
2015-05-08gdb/copyright.py: Remove sim/erc32 files from NOT_FSF_LIST.Joel Brobecker1-3/+0
Now that the erc32 files have been updated to contain an FSF copyright header, these files should no longer be in the exclude list. gdb/ChangeLog: * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
2015-01-01Update year range in copyright notice of all files owned by the GDB project.Joel Brobecker1-1/+1
gdb/ChangeLog: Update year range in copyright notice of all files.
2014-06-20Move shared native target specific code to gdb/natGary Benson1-1/+1
https://sourceware.org/gdb/wiki/Common describes the following directory structure: gdb/nat/ Native target backend files. Code that interfaces with the host debug API. E.g., ptrace code, Windows debug API code, procfs code should go here. gdb/target/ Host-independent, target vector specific code (target_ops). gdb/common/ All other shared code. This commit moves all native target backend files currently in gdb/common to gdb/nat. gdb/ 2014-06-20 Gary Benson <gbenson@redhat.com> * common/gdb_thread_db.h: Moved to nat. All includes updated. * common/glibc_thread_db.h: Likewise. * common/i386-cpuid.h: Likewise. * common/i386-gcc-cpuid.h: Likewise. * common/linux-btrace.h: Likewise. * common/linux-osdata.h: Likewise. * common/linux-procfs.h: Likewise. * common/linux-ptrace.h: Likewise. * common/mips-linux-watch.h: Likewise. * common/linux-btrace.c: Moved to nat. * common/linux-osdata.c: Likewise. * common/linux-procfs.c: Likewise. * common/linux-ptrace.c: Likewise. * common/mips-linux-watch.c: Likewise. * nat/gdb_thread_db.h: Moved from common. * nat/glibc_thread_db.h: Likewise. * nat/i386-cpuid.h: Likewise. * nat/i386-gcc-cpuid.h: Likewise. * nat/linux-btrace.c: Likewise. * nat/linux-btrace.h: Likewise. * nat/linux-osdata.c: Likewise. * nat/linux-osdata.h: Likewise. * nat/linux-procfs.c: Likewise. * nat/linux-procfs.h: Likewise. * nat/linux-ptrace.c: Likewise. * nat/linux-ptrace.h: Likewise. * nat/mips-linux-watch.c: Likewise. * nat/mips-linux-watch.h: Likewise. * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations. (object file files): Reordered. * gdb/copyright.py (EXCLUDE_LIST): Reflect new location of glibc_thread_db.h. gdb/gdbserver/ 2014-06-20 Gary Benson <gbenson@redhat.com> * Makefile.in (SFILES): Update locations for files moved from common to nat. (object file files): Reordered. gdb/testsuite/ 2014-06-20 Gary Benson <gbenson@redhat.com> * gdb.arch/i386-avx.exp: Fix include file location. * gdb.arch/i386-sse.exp: Likewise.
2014-01-01Update Copyright year range in all files maintained by GDB.Joel Brobecker1-1/+1
2013-06-21copyright.py: Handle files in gdb/gnulib owned by GDB.Joel Brobecker1-1/+1
The script was excluding all of gdb/gnulib but this is no longer correct, ever since we moved the imported files to gdb/gnulib/import. As a result, a number of files (Makefile, etc, including this script itself) did not have their copyright header updated. This fixes the problem. gdb/ChangeLog: * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by "gdb/gnulib/import".
2013-04-16copyright.py: Don't update glibc_thread_db.h.Pedro Alves1-0/+1
As glibc_thread_db.h is a 3rd party imported file, we should not update its copyright year range in the new year process. gdb/ 2013-04-16 Pedro Alves <palves@redhat.com> * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
2013-01-01Update years in copyright notice for the GDB files.Joel Brobecker1-1/+1
Two modifications: 1. The addition of 2013 to the copyright year range for every file; 2. The use of a single year range, instead of potentially multiple year ranges, as approved by the FSF.
2012-12-19Fix copyright years in gdbarch.h and gdbarch.c.Joel Brobecker1-1/+1
copyright.py was updating gdbarch.sh' copyright years, but not the function that genarates the copyright headers for gdbarch.[hc]. This patch makes the following changes: - fixes gdbarch.sh and regenerates gdbarch.[hc] - Modify copyright.py to remind the user to update gdbarch.sh by hand. This should also remind the user to rerun the script and update gdbarch.[hc] - see next point; - Allow copyright.py to update gdbarch.[hc]'c copyright years, even though these are generated files; This should free the user from having to update gdbarch.[hc] himself; gdb/ChangeLog: * gdbarch.sh (copyright): Update copyright years. * gdbarch.h, gdbarch.c: Regenerate. * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c. (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
2012-12-07Update copyright.py:NOT_FSF_LIST for sim/common subdir.Joel Brobecker1-3/+2
There was a duplicate ("sim/common/cgen-fpu.h"), and one entry where we do have an FSF copyright header ("sim/common/sim-fpu.c"). gdb/ChangeLog: * copyright.py (NOT_FSF_LIST): Remove duplicate entry "sim/common/cgen-fpu.h". Remove invalid entries "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h", which actually have an FSF copyright header.
2012-12-07Delete the gdb/osf-share directory.Joel Brobecker1-1/+0
These are old files that GDB does not use anymore, and probably has not used for a long time. gdb/ChangeLog: * osf-share/AT386/cma_thread_io.h: Delete. * osf-share/HP800/cma_thread_io.h: Delete. * osf-share/README: Delete. * osf-share/RIOS/cma_thread_io.h: Delete. * osf-share/cma_attr.h: Delete. * osf-share/cma_deb_core.h: Delete. * osf-share/cma_debug_client.h: Delete. * osf-share/cma_errors.h: Delete. * osf-share/cma_handle.h: Delete. * osf-share/cma_init.h: Delete. * osf-share/cma_list.h: Delete. * osf-share/cma_mutex.h: Delete. * osf-share/cma_sched.h: Delete. * osf-share/cma_semaphore_defs.h: Delete. * osf-share/cma_sequence.h: Delete. * osf-share/cma_stack.h: Delete. * osf-share/cma_stack_int.h: Delete. * osf-share/cma_tcb_defs.h: Delete. * osf-share/cma_util.h: Delete. * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files in osf-share. * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry. * contrib/ari/gdb_find.sh: Remove handling of osf-share. * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
2012-06-05copyright.py: Add gdb/CONTRIBUTE to EXCLUDE_LIST.Joel Brobecker1-0/+1
Normally, all files should have a copyright header, but gdb/CONTRIBUTE currently doesn't, and it adding one at the top of the file would probably be more pollution than information. So don't require a copyright header for now. gdb/ChangeLog: * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2012-06-05copyright.py: Update path to gnulib import.Joel Brobecker1-2/+4
The location where we store the gnulib import has changed. This patch updates accordingly the path to gnulib's update-copyright script. gdb/ChangeLog: * copyright.py (update_files, main): Fix path to update-copyright script.
2012-06-05copyright.py: Tell user to update gdb.texinfo and refcard.tex by hand.Joel Brobecker1-1/+9
gdb/ChangeLog: * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant. (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files for which a reminder to update by hand is printed.
2012-03-01Do not set MULTILINE_COMMENT_PREFIXES before calling update-copyrightJoel Brobecker1-12/+0
This was a local hack to work around a limitation in update-copyright. But the limitation is now OBE, because the copyright statements should now always fit on a single line, thanks to the new policy of using one single year range in the copyright notice. gdb/ChangeLog: * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete. (update_files): Do not set MULTILINE_COMMENT_PREFIXES environment variable before calling update-copyright.
2012-03-01Import gnulib's latest update-copyright script...Joel Brobecker1-2/+5
... and update our copyright.py script to set environment variable UPDATE_COPYRIGHT_USE_INTERVALS to '2' instead of '1'. This tells the script to collapse all years into one single interval. gdb/ChangeLog: * gnulib/extra/update-copyright: Update to the latest from gnulib's git repository. * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment variable to 2 instead of 1.
2012-01-04Copyright year update in most files of the GDB Project.Joel Brobecker1-1/+1
gdb/ChangeLog: Copyright year update in most files of the GDB Project.
2012-01-04use gnulib's update-copyright script to update copyright yearsJoel Brobecker1-587/+257
This patch now retires the old copyright.sh script which was using emacs to perform the copyright update. It also completely rewrite copyright.py to call update-copyright with the appropriate list of files. In addition to calling update-copyright, the new script also performs a sanity-check on all the files that update-copyright could not update, and sees whether the file might contain a copyright notice that the script could not decipher. gdb/ChangeLog: * copyright.sh: Delete. * copyright.py: Rewrite.
2011-01-06New script copyright.pyJoel Brobecker1-0/+608
gdb/ChangeLog: * copyright.py: New script. * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc. Launch emacs without exec'ing. Call copyright.py afterwards.