I get a coredump file by executing
qemu-riscv32 myprogram
and I can normally debug 'myprogram' like this
qemu-riscv32 -singlestep -g 2000 myprogram
riscv32-unknown-linux-gnu-gdb myprogram
target remote localhost:2000
but how can I debug with the generated coredump file, simply execute
riscv32-unknown-linux-gnu-gdb myprogram coredump
will not work, could anyone give me some advice, thanks!