]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Inline initialization of gdbarch members
authorTom Tromey <tromey@adacore.com>
Tue, 18 Oct 2022 15:48:09 +0000 (09:48 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 31 Oct 2022 15:04:10 +0000 (09:04 -0600)
commit6c8912c64bcbfd109af0500577409690074e9d27
tree14654b29c15c6417565df7ed635fb7687cb3a5f4
parent86430497337968e6163aef370c6312e7b5ed6504
Inline initialization of gdbarch members

This changes gdbarch to use the "predefault" to initialize its members
inline.  This required changing a couple of the Value instantiations
to avoid a use of "gdbarch" during initialization, but on the whole I
think this is better -- it removes a hidden ordering dependency.
gdb/gdbarch-components.py
gdb/gdbarch.c
gdb/gdbarch.py