riscv-software-src / homebrew-riscv

homebrew (macOS) packages for RISC-V toolchain
https://riscv.org
310 stars 50 forks source link

An strange error occurred when I run riscv64-unknown-elf-gdb #37

Closed PKUFlyingPig closed 4 years ago

PKUFlyingPig commented 4 years ago

I installed the riscv-toolchain on my Mac followed the instruction in the README, it works well with qemu but when I run the riscv64-unknown-elf-gdb, an error occurred as follows:

image

I cd into the /usr/local/Cellar/riscv-gnu-toolchain/master/share/ ,but don't find a file named gdb. meantime, there is another error says

image

and each time I enter any gdb command e.g. step, stepi ...., this error repeats. How to solve this problem ?

sbeamer commented 4 years ago

We welcome contributions to add support for gdb. We currently do not support it.

Similar to https://github.com/riscv/homebrew-riscv/issues/26

Kuluso97 commented 3 years ago

brew install gdb, and copy the /usr/local/Cellar/gdb//share/gdb/python to your riscv destination directory shown in the warning. This works for me.