]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add extension_language_ops::shutdown
authorTom Tromey <tromey@adacore.com>
Fri, 23 Feb 2024 20:18:49 +0000 (13:18 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 27 Feb 2024 17:30:29 +0000 (10:30 -0700)
commitbeadf912845c9c37c5afeadd77635950cf697d9f
tree0aea9a41c267cefe709c06f72e878f229a58be1b
parent1eae7be116ddabb13b34d2c2e8e0dc13fbae2a0d
Add extension_language_ops::shutdown

Right now, Python is shut down via a final cleanup.  However, it seems
to me that it is better for extension languages to be shut down
explicitly, after all the ordinary final cleanups are run.  The main
reason for this is that a subsequent patch adds another case like
finalize_values; and rather than add a series of workarounds for
Python shutdown, it seemed better to let these be done via final
cleanups, and then have Python shutdown itself be the special case.
gdb/extension-priv.h
gdb/extension.c
gdb/extension.h
gdb/guile/guile.c
gdb/python/python.c
gdb/top.c