This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/2] [config/gdb] Add GDB_HAS_PYTHON


Add a Kconfig boolean to enable python, only if GDB_7_0_or_later.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
---
 config/debug/gdb.in       | 4 ++++
 config/debug/gdb.in.cross | 1 +
 2 files changed, 5 insertions(+)

diff --git a/config/debug/gdb.in b/config/debug/gdb.in
index 3aaff8e..a3f1930 100644
--- a/config/debug/gdb.in
+++ b/config/debug/gdb.in
@@ -147,11 +147,15 @@ config GDB_7_2_or_later
 config GDB_7_0_or_later
     bool
     select GDB_HAS_PKGVERSION_BUGURL
+    select GDB_HAS_PYTHON
     select GDB_INSTALL_GDBINIT
 
 config GDB_HAS_PKGVERSION_BUGURL
     bool
 
+config GDB_HAS_PYTHON
+    bool
+
 config GDB_INSTALL_GDBINIT
     bool
 
diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross
index 7e66ce5..549cba2 100644
--- a/config/debug/gdb.in.cross
+++ b/config/debug/gdb.in.cross
@@ -35,6 +35,7 @@ config GDB_CROSS_SIM
 config GDB_CROSS_PYTHON
     bool
     prompt "Enable python scripting"
+    depends on GDB_HAS_PYTHON
     depends on ! GDB_CROSS_STATIC
     default y
     help
-- 
2.1.0.rc1


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]