diff options
author | Tom de Vries <tdevries@suse.de> | 2023-10-23 18:25:12 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-10-23 18:25:12 +0200 |
commit | 093c25c488ad6826d29d9345422c7845658ef383 (patch) | |
tree | 89bb5c102d701b07c0b74c8aa8ab3145a5ff0631 /gdb/python | |
parent | a0094f1a70e1d5a7a8124e7c988fc1ddd1886f19 (diff) | |
download | gdb-093c25c488ad6826d29d9345422c7845658ef383.zip gdb-093c25c488ad6826d29d9345422c7845658ef383.tar.gz gdb-093c25c488ad6826d29d9345422c7845658ef383.tar.bz2 |
[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.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/python.c | 5 |
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"; |