[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.
This commit is contained in:
parent
a0094f1a70
commit
093c25c488
1 changed files with 4 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue