diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-26 20:13:57 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-02-27 13:28:32 -0500 |
commit | fbbe9eb8b51e98d57cf243a109cfc57eb9bfbeeb (patch) | |
tree | d4c2697a5c7c1846d29cb71b042fe3475e2a0cb6 /gdb/python/python.c | |
parent | c4e1b10cc2e84eaf574842907e4c35ad51eb5792 (diff) | |
download | binutils-fbbe9eb8b51e98d57cf243a109cfc57eb9bfbeeb.zip binutils-fbbe9eb8b51e98d57cf243a109cfc57eb9bfbeeb.tar.gz binutils-fbbe9eb8b51e98d57cf243a109cfc57eb9bfbeeb.tar.bz2 |
gdb: gdbarch.py: remove Info.__init__
Info.__init__ currently assigns `self.predicate = None`. This was
helpful to ensure that all component types had a `predicate` attribute.
The generator code could then avoid having code like "if the component
is anything but Info, use predicate". Since the previous commit, all
component types have a predicate attribute which defaults to False. We
can therefore remove the assignment in Info.__init__, and in turn remove
Info.__init__. We however need to make the printer parameter of
_Component.__init__ optional, as Info don't need a printer.
Change-Id: I611edeca9cc9837eb49dddfe038595e1ff3b7239
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions