DEBUG WITH GDB ERROR ! - spike: unrecognized option --gdb-port
Hello,
I've installed and built the riscv toolchain and i'm following these insructions: Running spike --gdb-port 9824 pk tests/debug or spike --gdb-port 9824 pk debug/tests in the first terminal gives the following error: Code:
spike: unrecognized option --gdb-port Thank you ! |
Doesn't appear that you've compiled the exact source provided in that GitHub example. In spike_main/spike.cc shows as:
Code:
static void help() Have you modified the original code provided in that Git repository? That posting is dated 2011, but it may be worth attempting to contact the poster of it to see if they can provide more details about this problem; however my read is that you've cut out some code from their original offering and thus that error is not just within the help output, but also in the argument parsing for the main program. |
Yes, in fact the spike.cc was different from the one on Github. I'm sorry if this sounds silly (newbie) but i've replaced the code in my spike.cc with the newer one. Does that mean i have to build everything ? or just configure riscv-isa-sim (/.configure) ?
Code:
alpha@alpha-VirtualBox:~/lowrisc-chip/riscv-tools/riscv-isa-sim$ ls |
You have to rebuild the code.
|
All times are GMT -5. The time now is 11:07 AM. |