[Buildroot] [PATCH 1/1] package/gdb: prevent gdbserver being selected for RISC-V builds

Mark Corbin mark.corbin at embecosm.com
Mon Nov 26 14:24:38 UTC 2018

There is currently no version of gdbserver for RISC-V. Until this
is implemented we will prevent both the direct and indirect
selection of gdbserver for RISC-V builds. In practice this means
that 'cross gdb for the host' cannot be selected and that
'full debugger' must be automatically selected for the gdb target

Signed-off-by: Mark Corbin <mark.corbin at embecosm.com>
 package/gdb/Config.in      | 5 ++++-
 package/gdb/Config.in.host | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/gdb/Config.in b/package/gdb/Config.in
index 55c1b194ce..b3668aeb24 100644
--- a/package/gdb/Config.in
+++ b/package/gdb/Config.in
@@ -24,7 +24,9 @@ config BR2_PACKAGE_GDB
 	# target, we don't allow building a separate gdbserver. The
 	# one from the external toolchain should be used.
 	select BR2_PACKAGE_GDB_SERVER if \
+		!BR2_riscv)
+	select BR2_PACKAGE_GDB_DEBUGGER if BR2_riscv
 	  GDB, the GNU Project debugger, allows you to see what is
 	  going on `inside' another program while it executes -- or
@@ -46,6 +48,7 @@ if BR2_PACKAGE_GDB
 	bool "gdbserver"
+	depends on !BR2_riscv
 	  Build the gdbserver stub to run on the target.
 	  A full gdb is needed to debug the progam.
diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
index df8817d91d..ade2371d5c 100644
--- a/package/gdb/Config.in.host
+++ b/package/gdb/Config.in.host
@@ -7,6 +7,7 @@ config BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
 	depends on !BR2_microblaze
 	depends on !BR2_nios2
 	depends on !BR2_or1k
+	depends on !BR2_riscv
 comment "Host GDB Options"

More information about the buildroot mailing list