“tst” (a simple C “hello world”) is built without error with:
/usr/local/opt/riscv-gnu-toolchain/bin/riscv64-unknown-elf-gcc -g tst.c -o tst
Python Exception <type ‘exceptions.ImportError’> No module named gdb:
Could not load the Python gdb module from `/usr/local/Cellar/riscv-gnu-toolchain/master/share/gdb/python’.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “–host=x86_64-apple-darwin20.3.0 --target=riscv64-unknown-elf”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from tst…
I’m sorry, Dave, I can’t do that. Symbol format `elf64-littleriscv’ unknown.
The /usr/local/Cellar/riscv-gnu-toolchain/master/share directory hold only two subdirectories: “info” and “man”
python version 2.7 and 3.8 are installed
There are only two “gdb” folders (very thin content) in the OS drive:
/usr/local/Cellar/isl/0.24/share/gdb (hold auto-load folder holding libisl.23.dylib-gdb file)
/usr/local/Cellar/riscv-gnu-toolchain/master/include/gdb (hold jit-reader)
spike -d pk tst
work fine but only step in assembly
Big Sur on MacPro 2013
Any suggestion will be appreciate.