X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=debug%2FREADME.md;h=4a90c0c770aad9157da31f720ef60d689d141639;hp=829a285deb0ec7430164d4791423f559b95af046;hb=553f2a265fe62b514cb97fdbd80ea1743de6e3cf;hpb=a27ddca0570517e7e40a91c16e4c96c6c5f329e1 diff --git a/debug/README.md b/debug/README.md index 829a285..4a90c0c 100644 --- a/debug/README.md +++ b/debug/README.md @@ -12,23 +12,23 @@ Targets 64-bit Spike ------------ -`./gdbserver.py --spike --cmd $RISCV/bin/spike` +`./gdbserver.py --spike64 --cmd $RISCV/bin/spike` 32-bit Spike ------------ `./gdbserver.py --spike32 --cmd $RISCV/bin/spike` -32-bit SiFive Core on Microsemi FPGA board ------------------------------------------- +32-bit SiFive Core on Arty FPGA board +------------------------------------- -`./gdbserver.py --m2gl_m2s` +`./gdbserver.py --freedom-e300` Debug Tips ========== You can run just a single test by specifying . on the command -line, eg: `./gdbserver.py --spike --cmd $RISCV/bin/spike +line, eg: `./gdbserver.py --spike64 --cmd $RISCV/bin/spike SimpleRegisterTest.test_s0`. Once that test has failed, you can look at gdb.log and (in this case) spike.log to get an idea of what might have gone wrong. @@ -36,3 +36,6 @@ to get an idea of what might have gone wrong. You can see what spike is doing by add `-l` to the spike command, eg.: `./gdbserver.py --spike32 --cmd "$RISCV/bin/spike -l" DebugTest.test_breakpoint`. (Then look at spike.log.) + +You can run gdb under valgrind by passing --gdb, eg.: `./gdbserver.py --spike64 +--gdb "valgrind riscv64-unknown-elf-gdb" -- -v DownloadTest`.