Move copyright code from gdbarch.py to new file
authorTom Tromey <tromey@adacore.com>
Mon, 14 Feb 2022 15:26:32 +0000 (08:26 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 2 Mar 2022 16:11:30 +0000 (09:11 -0700)
commita8ab094a329bd2d212f17485b24ad84fa409b546
treef7f19c91cb4cbb0a8c46bf403b86850bd489cbe9
parentaca6e93ecf8d628bcdc52130d8d5417954b0f1cb
Move copyright code from gdbarch.py to new file

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.
gdb/copyright.py
gdb/gdbarch-gen.h
gdb/gdbarch.c
gdb/gdbarch.py
gdb/gdbcopyright.py [new file with mode: 0644]