]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/python: introduce gdbpy_registry
authorJan Vrany <jan.vrany@labware.com>
Wed, 19 Mar 2025 21:12:53 +0000 (21:12 +0000)
committerJan Vrany <jan.vrany@labware.com>
Wed, 19 Mar 2025 21:12:53 +0000 (21:12 +0000)
commita691853148fae5ce4345b14b5ae8f2e90d147f37
treedddb7832428d4b187ce10f050a27c08d392ab82d
parentea8b10443b1cf39054a5c30e65ecf24ad860482d
gdb/python: introduce gdbpy_registry

This commit introduces new template class gdbpy_registry to simplify
Python object lifecycle management. As of now, each of the Python
object implementations contain its own (copy of) lifecycle management
code that is largely very similar. The aim of gdbpy_registry is to
factor out this code into a common (template) class in order to simplify
the code.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/python/python-internal.h