gdb/python: implement support for sending custom MI async notifications
authorJan Vrany <jan.vrany@labware.com>
Tue, 10 Oct 2023 10:22:56 +0000 (11:22 +0100)
committerJan Vrany <jan.vrany@labware.com>
Tue, 10 Oct 2023 10:22:56 +0000 (11:22 +0100)
commit4825fd2d3552a047264a1f3d900ce30047a8c5f6
tree0cdbeb05638b51fb0f27fef50ce81c7e3e366682
parent80a3485f81303639c7212a15cf9e453a830913f8
gdb/python: implement support for sending custom MI async notifications

This commit adds a new Python function, gdb.notify_mi, that can be used
to emit custom async notification to MI channel.  This can be used, among
other things, to implement notifications about events MI does not support,
such as remote connection closed or register change.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/NEWS
gdb/doc/python.texi
gdb/python/py-mi.c
gdb/python/python-internal.h
gdb/python/python.c
gdb/testsuite/gdb.python/py-mi-notify.exp [new file with mode: 0644]