Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv64-unknown-elf-gdb: Installation error: gdb._execute_unwinders function is missing #61

Closed
Happytreat opened this issue Jun 8, 2021 · 4 comments

Comments

@Happytreat
Copy link

Hi, I am currently work on xv6 riscv and it seems that riscv64-unknown-elf-gdb doesn't work. Could you please help me with it?

After running riscv64-unknown-elf-gdb, the ERROR message was:

Python Exception <type 'exceptions.NameError'> Installation error: gdb._execute_unwinders function is missing

.gdbinit: (Expected to work)

set confirm off
set architecture riscv:rv64
target remote 127.0.0.1:25501
symbol-file kernel/kernel
set disassemble-next-line auto
@sbeamer
Copy link
Collaborator

sbeamer commented Jul 3, 2021

How are you intending to use gdb in this context? In other words, what is emulating RISC-V on your mac?

@jimizai
Copy link

jimizai commented Jul 17, 2021

I just copy the /usr/local/Cellar/gdb/10.1/share/gdb/python to the folder, looks like the problem solved.

@sbeamer sbeamer closed this as completed Aug 1, 2021
@Smith-Cruise
Copy link

I just copy the /usr/local/Cellar/gdb/10.1/share/gdb/python to the folder, looks like the problem solved.

Please tell me to copy to which folder, I'm facing the same problem you've met.

@Virus-V
Copy link

Virus-V commented Aug 23, 2021

cd /usr/local/Cellar/riscv-gnu-toolchain/master/share
mkdir gdb
cd gdb
cp -r /usr/local/Cellar/gdb/10.2/share/gdb/python .

@Smith-Cruise Executing these commands seems to solve my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants