Generate new gdbarch-components.py from gdbarch.sh
authorTom Tromey <tom@tromey.com>
Wed, 15 Dec 2021 00:19:03 +0000 (17:19 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 17 Dec 2021 22:07:09 +0000 (15:07 -0700)
commit65b1aa7501ace4c58fb5062479c710d0bdff6f34
tree13b6123bcc8f19e948960ea2c6361b7f82179a1a
parentce5abab7377ef54fcd44e1e19eb579c8444ac0dd
Generate new gdbarch-components.py from gdbarch.sh

The new gdbarch.sh approach will be to edit a Python file, rather than
adding a line to a certain part of gdbarch.sh.  We use the existing sh
code, though, to generate the first draft of this .py file.

Documentation on the format will come in a subsequent patch.

Note that some info (like "staticdefault") in the current code is
actually unused, and so is ignored by this new generator.
gdb/gdbarch-components.py [new file with mode: 0644]
gdb/gdbarch.sh