Skip to contentSkip to conversation

Status of gdb/gdbserver support for RISC-V 64 ?

Buildroot Thomas Petazzoni 2 participants 2 messages Nov 24, 2018 – Nov 26, 2018

lore
Share & tools
lore
#0 lore raw

Hello Mark,

I'm curious to know what is the status of RISC-V 64 support in gdb/gdbserver ?

Just tried building gdbserver with gdb 8.1.1, and it says:

Error: target not supported by gdbserver.

Is the support on its way upstream ? We probably need to add a few more dependencies in package/gdb/Config.in.host to prevent people from trying to build gdb versions that don't have RISC-V 64 support.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#1 lore raw

Hello Thomas

Quoted 5 lines · Thomas Petazzoni

Hello Mark,

I'm curious to know what is the status of RISC-V 64 support in gdb/gdbserver ?

Quoted 7 lines

Just tried building gdbserver with gdb 8.1.1, and it says:

Error: target not supported by gdbserver.

Is the support on its way upstream ? We probably need to add a few more dependencies in package/gdb/Config.in.host to prevent people from trying to build gdb versions that don't have RISC-V 64 support.

RISC-V gdb support is upstream already, but gdbserver for RISC-V doesn't exist yet.

I guess that for RISC-V we should prevent gdbserver (BR2_PACKAGE_GDB_SERVER) and cross gdb (BR2_PACKAGE_HOST_GDB) from being built and select 'full debugger' (BR2_PACKAGE_GDB_DEBUGGER) for native RISC-V gdb builds.

I'll take a look at the configuration options.

Regards

Mark

Signature · 3 lines
Mark Corbin
Embecosm Ltd.
https://www.embecosm.com