diff options
-rw-r--r-- | gdb/python/python.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 5918bb4..37eacef 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1878,8 +1878,6 @@ do_start_initialization () return true; } -#endif /* HAVE_PYTHON */ - #if GDB_SELF_TEST namespace selftests { @@ -1921,6 +1919,8 @@ test_python () } // namespace selftests #endif /* GDB_SELF_TEST */ +#endif /* HAVE_PYTHON */ + /* See python.h. */ cmd_list_element *python_cmd_element = nullptr; @@ -2020,9 +2020,11 @@ python executable."), &user_set_python_list, &user_show_python_list); +#ifdef HAVE_PYTHON #if GDB_SELF_TEST selftests::register_test ("python", selftests::test_python); #endif /* GDB_SELF_TEST */ +#endif /* HAVE_PYTHON */ } #ifdef HAVE_PYTHON |