I am running Simple C and Assembly programs on spike (this works fine). I am having trouble to run spikes debug mode. I always get the same output although I am trying to debug different programs. I am using the riscv64-unknown-elf-gcc to generate the executable binaries from C and Assembly code and the following commands also described on: http://riscv.org/download.html#tab_isa-sim to run the debug mode:
$ spike -d pk simpleprogram
I also get the same output if I just type:
$ spike -d pk
I get error messages if I type the following command (without pk):
$ spike -d simpleprogram