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

installed gdb doesn't work #26

Closed
shruthb opened this issue Oct 15, 2019 · 1 comment
Closed

installed gdb doesn't work #26

shruthb opened this issue Oct 15, 2019 · 1 comment

Comments

@shruthb
Copy link

shruthb commented Oct 15, 2019

I get the following output when I run the gdb installed and none of the gdb commands succeed.
Also tried searching for the directory that this outputs /usr/local/Cellar/riscv-gnu-toolchain/gnu/share/gdb/python but this really doesn't exist.

c4b301bae501:xv6-19au shruthb$ /usr/local/opt/riscv-gnu-toolchain/bin/riscv64-unknown-elf-gdb                                                                    
Python Exception <type 'exceptions.ImportError'> No module named gdb: 
/usr/local/opt/riscv-gnu-toolchain/bin/riscv64-unknown-elf-gdb: warning: 
Could not load the Python gdb module from `/usr/local/Cellar/riscv-gnu-toolchain/gnu/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

GNU gdb (GDB) 8.3.0.20190516-git
Copyright (C) 2019 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-darwin17.7.0 --target=riscv64-unknown-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
The target architecture is assumed to be riscv:rv64

OS details: mac OS High Sierra 10.13.6

@sbeamer
Copy link
Collaborator

sbeamer commented Jan 14, 2020

More work will be required to make riscv-gdb work with the host Python. We welcome any contributions to help with this.

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

2 participants