| commit | a691853148fae5ce4345b14b5ae8f2e90d147f37 | [log] [tgz] |
|---|---|---|
| author | Jan Vrany <jan.vrany@labware.com> | Wed Mar 19 21:12:53 2025 +0000 |
| committer | Jan Vrany <jan.vrany@labware.com> | Wed Mar 19 21:12:53 2025 +0000 |
| tree | dddb7832428d4b187ce10f050a27c08d392ab82d | |
| parent | ea8b10443b1cf39054a5c30e65ecf24ad860482d [diff] |
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>