[PATCH 0/3] New Python events.corefile_changed API

Andrew Burgess
2026-03-30T15:32:14Z

Patch #3 adds a new Python events.corefile_changed registry.

Patches #1 and #2 are some refactoring to make this possible.

Thanks,
Andrew

---

Andrew Burgess (3):
gdb: delete some unnecessary code from core_target::detach
gdb: refactor core_target ::close and ::detach functions
gdb/python: new events.corefile_changed event

gdb/NEWS | 5 +
gdb/corelow.c | 78 +++++++++----
gdb/doc/python.texi | 11 ++
gdb/python/py-all-events.def | 1 +
gdb/python/py-corefile.c | 36 ++++++
gdb/python/py-event-types.def | 5 +
gdb/testsuite/gdb.python/py-corefile.exp | 140 ++++++++++++++++++++---
gdb/testsuite/gdb.python/py-corefile.py | 117 +++++++++++++++++++
8 files changed, 351 insertions(+), 42 deletions(-)

base-commit: 82e460365ba9729e1e66b5f146c17a2ed1b4646c
--
2.25.4