Fix no-Python build
authorTom Tromey <tromey@adacore.com>
Mon, 13 Sep 2021 13:49:36 +0000 (07:49 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 13 Sep 2021 13:49:36 +0000 (07:49 -0600)
commite68b7db18cf127d054bebe9d6b28c0bfeadaf18a
tree21465e4fb1f96303374a68c9be2a939130ec1ebe
parent18287cf8b19533429a4b7f17726c93d1f292e1df
Fix no-Python build

A build without Python will currently fail, because
selftests::test_python uses gdb_python_initialized, which is only
conditionally defined.

This patch fixes the build by making test_python also be conditionally
defined.  I chose this approach because the selftest will fail if
Python is not enabled, so it didn't seem useful to leave it defined.
gdb/python/python.c