* Building Gdbserver is failing for Riscv Arch.
@ 2020-08-11 16:38 Ghalib Khan
2020-08-11 18:53 ` Jan Vrany
0 siblings, 1 reply; 4+ messages in thread
From: Ghalib Khan @ 2020-08-11 16:38 UTC (permalink / raw)
To: gdb
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,
checking whether gdbserver is supported on this host... no
configure: error: Automatic gdbserver build is not supported for this configuration
Makefile:9533: recipe for target 'configure-gdb' failed
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory '/home/khan/khan/riscv-tool/gdb-9.2/build'
Makefile:851: recipe for target 'all' failed
make: *** [all] Error 2
I heard that GDBSERVER is now Ported to RISCV but still it's not working, if you known anything to build GDBserver for RISCV please let me know.
Thanks
Ghalib khan c
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building Gdbserver is failing for Riscv Arch.
2020-08-11 16:38 Building Gdbserver is failing for Riscv Arch Ghalib Khan
@ 2020-08-11 18:53 ` Jan Vrany
2020-08-12 8:23 ` Ghalib Khan
0 siblings, 1 reply; 4+ messages in thread
From: Jan Vrany @ 2020-08-11 18:53 UTC (permalink / raw)
To: Ghalib Khan, gdb
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building Gdbserver is failing for Riscv Arch.
2020-08-11 18:53 ` Jan Vrany
@ 2020-08-12 8:23 ` Ghalib Khan
2020-08-14 8:25 ` Andrew Burgess
0 siblings, 1 reply; 4+ messages in thread
From: Ghalib Khan @ 2020-08-12 8:23 UTC (permalink / raw)
To: Jan Vrany, gdb
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 <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]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building Gdbserver is failing for Riscv Arch.
2020-08-12 8:23 ` Ghalib Khan
@ 2020-08-14 8:25 ` Andrew Burgess
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Burgess @ 2020-08-14 8:25 UTC (permalink / raw)
To: Ghalib Khan; +Cc: Jan Vrany, gdb
* 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]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-14 8:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 16:38 Building Gdbserver is failing for Riscv Arch Ghalib Khan
2020-08-11 18:53 ` Jan Vrany
2020-08-12 8:23 ` Ghalib Khan
2020-08-14 8:25 ` Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).