I doubt that the native linux support in that gdb will work. The core
architecture support for gdb has been upstreamed to FSF gdb, but there
is no RISC-V native linux support in that gdb tree.
I have a gdb port in progress based off of the FSF gdb tree. It
requires both gdb and linux kernel patches, and will probably be a
while before it is fully functional, as I need to write some more gdb
and linux kernel patches to get it fully working, and it will take
time to get the patches upstreamed and merged into linux distros, etc.
See
https://github.com/jim-wilson/riscv-linux-native-gdb
The README.md file mentions the linux kernel patches you need to make
it work at present; this list will be changing as the port progresses.
Only some basic commands are working: break, run, stepi, etc. Only
integer registers are supported. Some shared library features are
working. There is no core file support, but then I've never seen a
RISC-V corefile be generated by any kernel I've tried. I've only
tested this on Fedora with a patched kernel, both running on qemu and
on the HiFive Unleashed. I'm in the process of trying to add support
for FP registers now, that will require another linux kernel patch.
Jim