Re: [PATCH] riscv: add gdbserver support

Simon Marchi
2020-01-21T01:31:36Z

On 2020-01-20 6:33 p.m., Maciej W. Rozycki wrote:
> Offhand I can see the proposal fails to implement XML register
> descriptions, which I think every modern port is expected to do (we also
> need to disallow non-XML-enabled RISC-V stubs in GDB proper, as we
> discussed before; I fail to understand why it wasn't done right away with
> the initial implementation, as it's quite straightforward and would have
> set the policy for debug stubs right from the beginning).

I would also expect new ports to use XML target descriptions. And I see
that there is already code in arch/riscv.c to build target descriptions based
on detected features... so should gdbserver use it?

Simon

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/arch/riscv.c;h=a3ab8a92909f082754dfd6eb9a70f19153b8684f;hb=HEAD