gdb/gdbarch: remove the predicate function for gdbarch_register_type
authorAndrew Burgess <aburgess@redhat.com>
Thu, 10 Mar 2022 10:57:18 +0000 (10:57 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 14 Mar 2022 14:08:05 +0000 (14:08 +0000)
commit23bade95de322dead7fbd33368dce271c2911773
tree68fa8454065e7ff994ef371c88c6705c6be9c578
parentfb85cece22a2cb3c0185e61cfc1323e9c5a6466e
gdb/gdbarch: remove the predicate function for gdbarch_register_type

I don't believe that the gdbarch_register_type_p predicate is called
anywhere in GDB, and the gdbarch_register_type function is called
without checking the gdbarch_register_type_p predicate function
everywhere it is used, for example in
init_regcache_descr (regcache.c).

My claim is that the gdbarch_register_type function is required for
every architecture, and GDB will not work if this function is not
supplied.

And so, in this commit, I remove the 'predicate=True' from
gdbarch-components.py for the 'register_type' field, and regenerate
the gdbarch files.

There should be no user visible changes after this commit.
gdb/gdbarch-components.py
gdb/gdbarch-gen.h
gdb/gdbarch.c