Building Gdbserver is failing for Riscv Arch.

Andrew Burgess andrew.burgess@embecosm.com
Fri Aug 14 08:25:11 GMT 2020


* Ghalib Khan <ghalib.khan@exaleapsemi.com> [2020-08-12 08:23:01 +0000]:

> I have tried with master sources, with that gdbserver was build successfully, but while using gdbserver following Issue i have hit.
> 
> warning: while parsing target description (at line 4): Target description specified unknown architecture "riscv:rv64id"
> warning: Could not load XML target description; ignoring
> Remote register badly formatted: T0502:50fcffff3f000000;20:005ffef73f000000;thread:p817f.817f;core:2;
> here: 3f000000;20:005ffef73f000000;thread:p817f.817f;core:2;
> (gdb)

Which version of GDB were you using when you saw this error?  Was it
also GDB built from current master, or was this an older version of
GDB?

Thanks,
Andrew



> 
> ________________________________
> From: Jan Vrany <jan.vrany@fit.cvut.cz>
> Sent: 12 August 2020 12:23 AM
> To: Ghalib Khan <ghalib.khan@exaleapsemi.com>; gdb@sourceware.org <gdb@sourceware.org>
> Subject: Re: Building Gdbserver is failing for Riscv Arch.
> 
> On Tue, 2020-08-11 at 16:38 +0000, Ghalib Khan wrote:
> > Hello,
> >
> >          While building an Native GDBserver for RISCV Arch. with the following steps,
> >
> >   1.  Downloaded GDB sources from https://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.gz
> >   2.  untar gdb-9.2.tar.gz<https://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.gz>
> >   3.  cd gdb
> >   4.  ./configure --prefix=$PWD/install --enable-gdbserver
> >   5.  make
> >
> > Here i have Hit with following Error,
> 
> I think gdbserver for RISC-V came after GDB 9. Try GDB master
> (git://sourceware.org/git/binutils-gdb.git) - that should work.
> 
> It does work for me. And you don't need to pass `--enable-gdbserver`,
> it is build automatically.
> 
> HTH, Jan
> 
> [EXT]


More information about the Gdb mailing list