I get a coredump file by executing
qemu-riscv32 myprogram
and I can normally debug \'myprogram\' like this
qemu-riscv32 -singl