diff options
author | Tom Tromey <tromey@adacore.com> | 2022-06-20 11:30:04 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-07-18 11:25:34 -0600 |
commit | 0b4fe76f956293778f109764911a0b14dc944f5d (patch) | |
tree | a49d8074a33c86ea64a1f797ab3ecb99ad0597c4 /gdb/python/py-event.h | |
parent | 23948f56021f46bb2bdee7afad074aafe8329230 (diff) | |
download | binutils-0b4fe76f956293778f109764911a0b14dc944f5d.zip binutils-0b4fe76f956293778f109764911a0b14dc944f5d.tar.gz binutils-0b4fe76f956293778f109764911a0b14dc944f5d.tar.bz2 |
Add gdb.free_objfile event registry
Currently, Python code can use event registries to detect when gdb
loads a new objfile, and when gdb clears the objfile list. However,
there's no way to detect the removal of an objfile, say when the
inferior calls dlclose.
This patch adds a gdb.free_objfile event registry and arranges for an
event to be emitted in this case.
Diffstat (limited to 'gdb/python/py-event.h')
-rw-r--r-- | gdb/python/py-event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/py-event.h b/gdb/python/py-event.h index 831dd10..220af1f 100644 --- a/gdb/python/py-event.h +++ b/gdb/python/py-event.h @@ -74,6 +74,7 @@ extern gdbpy_ref<> create_thread_event_object (PyTypeObject *py_type, PyObject *thread); extern int emit_new_objfile_event (struct objfile *objfile); +extern int emit_free_objfile_event (struct objfile *objfile); extern int emit_clear_objfiles_event (void); extern void evpy_dealloc (PyObject *self); |