aboutsummaryrefslogtreecommitdiff
path: root/gdb/copyright.py
AgeCommit message (Collapse)AuthorFilesLines
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.