summaryrefslogtreecommitdiffstats
path: root/package/gdb
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2014-08-29 21:42:31 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-08-30 09:03:34 +0200
commit2474fb0bf1a786f3a170631f3dbce8b38092f986 (patch)
tree53c650be609eb1a03ad298fba6128a9dc92f9997 /package/gdb
parent76eee8c6ab3e684f680c8d199f4024ce6b38c53a (diff)
downloadbuildroot-2474fb0bf1a786f3a170631f3dbce8b38092f986.tar.gz
buildroot-2474fb0bf1a786f3a170631f3dbce8b38092f986.zip
host-gdb: enable terminal user interface support
Add a configuration option to compile host-gdb with the --enable-tui switch. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gdb')
-rw-r--r--package/gdb/Config.in.host6
-rw-r--r--package/gdb/gdb.mk8
2 files changed, 13 insertions, 1 deletions
diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
index cbc1361d8c..8846eafa15 100644
--- a/package/gdb/Config.in.host
+++ b/package/gdb/Config.in.host
@@ -13,6 +13,12 @@ config BR2_PACKAGE_HOST_GDB
if BR2_PACKAGE_HOST_GDB
+config BR2_PACKAGE_HOST_GDB_TUI
+ bool "GDB TUI support"
+ select BR2_PACKAGE_NCURSES
+ help
+ This option enables terminal user interface (TUI) for gdb
+
choice
prompt "GDB debugger Version"
depends on !BR2_arc
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 8ab264ba05..7e87bf97a2 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -114,7 +114,6 @@ HOST_GDB_CONF_OPT = \
--target=$(GNU_TARGET_NAME) \
--enable-static --disable-shared \
--without-uiout \
- --disable-tui \
--disable-gdbtk \
--without-x \
--enable-threads \
@@ -123,6 +122,13 @@ HOST_GDB_CONF_OPT = \
$(GDB_DISABLE_BINUTILS_CONF_OPT) \
--disable-sim
+ifeq ($(BR2_PACKAGE_HOST_GDB_TUI),y)
+ HOST_GDB_DEPENDENCIES += host-ncurses
+ HOST_GDB_CONF_OPT += --enable-tui
+else
+ HOST_GDB_CONF_OPT += --disable-tui
+endif
+
ifeq ($(GDB_FROM_GIT),y)
HOST_GDB_DEPENDENCIES += host-texinfo
else
OpenPOWER on IntegriCloud