Patchwork gdb: Needs threads support

login
register
mail settings
Submitter Maxime Ripard
Date Dec. 19, 2012, 7:28 a.m.
Message ID <1355902094-7555-1-git-send-email-maxime.ripard@free-electrons.com>
Download mbox | patch
Permalink /patch/207251/
State Accepted
Commit dd436d46fed1228bdb417c4b5fec0122696efa41
Headers show

Comments

Maxime Ripard - Dec. 19, 2012, 7:28 a.m.
Fixes
http://autobuild.buildroot.org/results/5a502f16ad94a410ca21c9a7f223d6c12086bbb5/build-end.log

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 toolchain/gdb/Config.in |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Peter Korsgaard - Dec. 19, 2012, 9:20 a.m.
>>>>> "Maxime" == Maxime Ripard <maxime.ripard@free-electrons.com> writes:

 Maxime> Fixes
 Maxime> http://autobuild.buildroot.org/results/5a502f16ad94a410ca21c9a7f223d6c12086bbb5/build-end.log

The URL is wrong, but I've fixed that and committed, thanks.

Patch

diff --git a/toolchain/gdb/Config.in b/toolchain/gdb/Config.in
index 50aafdf..6a8e48e 100644
--- a/toolchain/gdb/Config.in
+++ b/toolchain/gdb/Config.in
@@ -4,6 +4,7 @@  config BR2_PACKAGE_GDB
 	bool "Build gdb debugger for the Target"
 	select BR2_PACKAGE_NCURSES
 	depends on BR2_USE_WCHAR
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_sh && !BR2_sh64 && !BR2_avr32 && !BR2_microblaze && !BR2_bfin && !BR2_aarch64
 	# The newest versions of gdb require thread debugging in the
 	# toolchain. The only cases for which this is not needed is if
@@ -15,8 +16,8 @@  config BR2_PACKAGE_GDB
 	help
 	    Build the full gdb debugger to run on the target.
 
-comment "Gdb debugger for the target needs WCHAR support in toolchain"
-	depends on !BR2_USE_WCHAR
+comment "Gdb for the target needs WCHAR and threads support in toolchain"
+	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
 
 config BR2_PACKAGE_GDB_SERVER
 	bool "Build gdb server for the Target"