|
From: Antonio B. <bor...@gm...> - 2020-04-30 10:51:17
|
On Thu, Apr 30, 2020 at 12:35 PM Paul Fertser <fer...@gm...> wrote: > > Hi Kristof, > > On Thu, Apr 30, 2020 at 12:19:48PM +0200, kri...@te... 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 |