Re: Building Gdbserver is failing for Riscv Arch.
Andrew Burgess <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
* Ghalib Khan <[email protected]> [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 <[email protected]> > Sent: 12 August 2020 12:23 AM > To: Ghalib Khan <[email protected]>; [email protected] <[email protected]> > 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]