Re: Building Gdbserver is failing for Riscv Arch.

Ghalib Khan <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <MA1PR0101MB13184C17EF72AD118CF83794E8420@MA1PR0101MB1318.INDPRD01.PROD.OUTLOOK.COM>
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)

________________________________
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.