Skip to contentSkip to conversation

host-gdb: enable terminal user interface support

PATCH New Yegor Yefremov 2 participants 2 messages Aug 29, 2014 – Aug 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 host-gdb: enable terminal user interface support

Add a configuration option to compile host-gdb with --enbale-tui switch.

---
Changes:
v2: as there is no package like HOST_NCURSES, don't select anything (Thomas Petazzoni)

 package/gdb/Config.in.host | 5 +++++
 package/gdb/gdb.mk         | 8 +++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
package/gdb/Config.in.host +5 -0
index cbc1361..e48dc10 100644
@@ -13,6 +13,11 @@ config BR2_PACKAGE_HOST_GDB
 
 if BR2_PACKAGE_HOST_GDB
 
+config BR2_PACKAGE_HOST_GDB_TUI
+	bool "GDB TUI support"
+	help
+	  This option enables terminal user interface (TUI) for gdb
+
 choice
 	prompt "GDB debugger Version"
 	depends on !BR2_arc
package/gdb/gdb.mk +7 -1
index 8ab264b..7e87bf9 100644
@@ -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
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 host-gdb: enable terminal user interface support

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yegor" == Yegor Yefremov <[email protected]> writes:

Add a configuration option to compile host-gdb with --enbale-tui switch.

Committed to next with the commit message fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard