aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/python/python.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index d3dea08..d569fb5 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -35,9 +35,12 @@
#include <ctype.h>
#include "location.h"
#include "run-on-main-thread.h"
-#include "gdbsupport/selftest.h"
#include "observable.h"
+#if GDB_SELF_TEST
+#include "gdbsupport/selftest.h"
+#endif
+
/* Declared constants and enum for python stack printing. */
static const char python_excp_none[] = "none";
static const char python_excp_full[] = "full";