host-gdb: enable terminal user interface support
PATCH 1/1 host-gdb: enable terminal user interface support
Add a configuration option to compile host-gdb with --enbale-tui switch.
Signed-off-by Yegor Yefremov <[email protected]>
--- package/gdb/Config.in.host | 6 ++++++ package/gdb/gdb.mk | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-)
package/gdb/Config.in.host +6 -0
@@ -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
package/gdb/gdb.mk +7 -1
@@ -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
PATCH 1/1 host-gdb: enable terminal user interface support
Dear Yegor Yefremov,
package/gdb/Config.in.host config BR2_PACKAGE_HOST_GDB · line 18
Quoted 3 lines · Yegor Yefremov
package/gdb/Config.in.host +3
-0+config BR2_PACKAGE_HOST_GDB_TUI + bool "GDB TUI support" + select BR2_PACKAGE_NCURSES
No, this select doesn't make sense. BR2_PACKAGE_NCURSES is the *target* ncurses. There's no point in selecting it here since what you're interested in is host-ncurses. Since there's no Config.in option for host ncurses, simply don't select anything here.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com