]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/python: add unlink () method to gdb.Objfile object
authorJan Vrany <jan.vrany@labware.com>
Thu, 21 Nov 2024 12:31:20 +0000 (12:31 +0000)
committerJan Vrany <jan.vrany@labware.com>
Thu, 21 Nov 2024 13:52:21 +0000 (13:52 +0000)
commitb0307d2ae4bf33b15846bcb44f691acc33c7a667
tree79e6f1c34431ef231f76dac8f71256517066afe2
parent8adaaeb6addea1f1692729b8c9fab4ba3417ae55
gdb/python: add unlink () method to gdb.Objfile object

This commit adds method allowing one remove any objfile. This is meant
to be used to remove objfiles for dynamic code when this dynamic code
is discarded. However gdb.Objfile.unlink() makes no attempt to ensure
this - to make it consistent with other Python API to create and modify
objfiles related structures (compunits, symbol tables and so on).

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/doc/python.texi
gdb/python/py-objfile.c
gdb/testsuite/gdb.python/py-objfile.exp