On Thu, Apr 30, 2020 at 12:35 PM Paul Fertser <fercer...@gmail.com> wrote:
>
> Hi Kristof,
>
> On Thu, Apr 30, 2020 at 12:19:48PM +0200, kristof.mul...@telenet.be wrote:
> >     (gdb) target remote localhost:3333
>
> I recommend extended-remote always, there's no reason at all to not
> use it. I type "tar ext :3333" usually.
>
> >     Remote debugging using localhost:3333
> >     bfd requires xlen 8, but target has xlen 4
>
> This is the real reason behind the issue.
>
> Some random searches tell me it might help to do "set arch riscv:rv32"
> before executing "target" command.


Yes,riscv target does not define the function get_gdb_arch(), so
cannot send the arch value to gdb.
This should be easy to fix, but there are so many variants of riscv
that I don't know how to correctly implement it.

Tim,
any suggest or patch to fix this?

Antonio


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to