Skip to contentSkip to conversation

toolchain/gdb: disable support of full gdb on target for blackfin

PATCH New Thomas Petazzoni 2 participants 3 messages Nov 10, 2012 – Nov 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 toolchain/gdb: disable support of full gdb on target for blackfin

There is no support in gdb 6.6 for the Blackfin architecture, so disallow this choice. This fixes the following build failure:

http://autobuild.buildroot.org/results/e37db29810265a756833da163fda444d967d7874/build-end.log

---
 toolchain/gdb/Config.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/gdb/Config.in +1 -1
index 8acce1e..ca0c821 100644
@@ -4,7 +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_sh && !BR2_sh64 && !BR2_avr32 && !BR2_microblaze
+	depends on !BR2_sh && !BR2_sh64 && !BR2_avr32 && !BR2_microblaze && !BR2_bfin
 	# The newest versions of gdb require thread debugging in the
 	# toolchain. The only cases for which this is not needed is if
 	# we use gdb 6.8 (marked deprecated)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 toolchain/gdb: exceptionally allow building gdbserver for the target on blackfin

In order to guarantee the compatibility between the cross gdb and the gdbserver, we expect external toolchains to provide both cross gcc and gdbserver. Unfortunately, external toolchains provided by Analog Devices for Blackfin do not come with a gdbserver, so we exceptionnally allow the building on gdbserver even with external toolchains in the Blackfin case.

---
 toolchain/gdb/Config.in |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
toolchain/gdb/Config.in +8 -1
index ca0c821..66f1b42 100644
@@ -20,7 +20,14 @@ comment "Gdb debugger for the target needs WCHAR support in toolchain"
 
 config BR2_PACKAGE_GDB_SERVER
 	bool "Build gdb server for the Target"
-	depends on !BR2_TOOLCHAIN_EXTERNAL
+	# In order to guarantee the compatibility between the cross
+	# gdb and the gdbserver, we expect external toolchains to
+	# provide both cross gcc and gdbserver. Unfortunately,
+	# external toolchains provided by Analog Devices for Blackfin
+	# do not come with a gdbserver, so we exceptionnally allow the
+	# building on gdbserver even with external toolchains in the
+	# Blackfin case.
+	depends on !BR2_TOOLCHAIN_EXTERNAL || BR2_bfin
 	help
 	    Build the gdbserver stub to run on the target.
 	    A full gdb is needed to debug the progam.
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 1/2 toolchain/gdb: disable support of full gdb on target for blackfin

In reply to Thomas Petazzoni
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> There is no support in gdb 6.6 for the Blackfin architecture, so Thomas> disallow this choice. This fixes the following build failure:

Thomas> http://autobuild.buildroot.org/results/e37db29810265a756833da163fda444d967d7874/build-end.log

Committed both, thanks.

Signature · 1 line
Bye, Peter Korsgaard