]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/python: convert gdb.Symtab to use 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)
commitf55f92476159098d5200d57768fdc0071e04ed67
tree6c6e5bb30e3bc6e26d476598f93557cc79f9cd8a
parentcd8707ad0d0e5ec8b5f7150269681952f26505b8
gdb/python: convert gdb.Symtab to use gdbpy_registry

This commit converts gdb.Symtab to use gdbpy_registry for lifecycle
management. Since gdb.Symtab only holds on the struct symtab * (and
prev/next links) the default invalidator can be used.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/python/py-symtab.c