gdbserver is not building for riscv Target

Ghalib Khan <[email protected]> Fri, 24 Jan 2020 13:33:02 +0000
Newsgroups gmane.comp.gdb.devel,gmane.comp.gdb.bugs.general
Message-ID <PN1PR0101MB12135B30DA44299810012DAFE80E0@PN1PR0101MB1213.INDPRD01.PROD.OUTLOOK.COM>
Hi


  *   I need a gdbserver for RISCV Target, so i started to building a gdbse=
rver with help of FSF GDB sources.
  *   Mentioned build procedure steps as follows,

  1.  Downloaded Sources code, https://ftp.gnu.org/gnu/gdb/gdb-8.3.tar.gz
  2.  cd gdb-8.3.tar.gz<https://ftp.gnu.org/gnu/gdb/gdb-8.3.tar.gz>
  3.  export PATH=3D< PATH >/riscv64-unknown-linux-gnu/install/bin
  4.  ../configure --prefix=3D< PATH >/install --build=3Dx86_64-linux-gnu -=
-host=3Driscv64-unknown-linux-gnu --target=3Driscv64-unknown-linux-gnu CC=
=3Driscv64-unknown-linux-gnu-gcc

Here it's building only gdb for RISCV, not a gdbserver.

Details of Build tool's:-
gdb: ELF 64-bit LSB executable, UCB RISC-V, version 1 (GNU/Linux), dynamica=
lly linked, interpreter /lib/ld-, for GNU/Linux 4.15.0, not stripped

               * To build only gdbserver:-

  1.  cd gdb-8.3<https://ftp.gnu.org/gnu/gdb/gdb-8.3.tar.gz>
  2.  ../configure --prefix=3D< PATH >/install --build=3Dx86_64-linux-gnu -=
-host=3Driscv64-unknown-linux-gnu --target=3Driscv64-unknown-linux-gnu CC=
=3Driscv64-unknown-linux-gnu-gcc

Here am hitting an Error:-
Error: target not supported by gdbserver.


  *    Can any one Help me to resolve this issue, so i can have a RISCV gdb=
 server.
  *   From my knowledge, gdbserver is not yet ported to RISCV. If this is t=
he case, can you please guide me to port gdbserver.

Thanks & Regards,
Ghalib khan C