[RFC 12/21] gdb/python: add unlink () method to gdb.Objfile object
Eli Zaretskii
eliz@gnu.org
Mon Nov 11 16:12:14 GMT 2024
> From: Jan Vrany <jan.vrany@labware.com>
> CC: Jan Vrany <jan.vrany@labware.com>
> Date: Mon, 11 Nov 2024 14:55:13 +0000
>
> 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).
> ---
> gdb/doc/python.texi | 6 ++++++
> gdb/python/py-objfile.c | 18 ++++++++++++++++++
> gdb/testsuite/gdb.python/py-objfile.exp | 12 ++++++++++++
> 3 files changed, 36 insertions(+)
Thanks, the documentation part is okay.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
More information about the Gdb-patches
mailing list