[gdb/python] Only include gdbsupport/selftest.h if GDB_SELF_TEST
authorTom de Vries <tdevries@suse.de>
Mon, 23 Oct 2023 16:25:12 +0000 (18:25 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 23 Oct 2023 16:25:12 +0000 (18:25 +0200)
commit093c25c488ad6826d29d9345422c7845658ef383
tree89bb5c102d701b07c0b74c8aa8ab3145a5ff0631
parenta0094f1a70e1d5a7a8124e7c988fc1ddd1886f19
[gdb/python] Only include gdbsupport/selftest.h if GDB_SELF_TEST

I noticed that gdb/python/python.c unconditionally includes
gdbsupport/selftest.h.

Make this conditional on GDB_SELF_TEST.

Tested on x86_64-linux.
gdb/python/python.c