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

Additional steps required for using tui with gdb in Ubuntu 20.04 LTS for xv6-2021-labs #135

Open
sudk1896 opened this issue Aug 28, 2022 · 1 comment

Comments

@sudk1896
Copy link

sudk1896 commented Aug 28, 2022

The instructions mentioned here are not enough to enable gdb with tui on Ubuntu 20.04 LTS.
The steps need to be updated. Here is what I had to do,

  • I had to install libncurses5-dev first. This isn't pre-installed on Ubuntu 20.04 LTS.
  • Then build riscv-gnu-toolchain from source -> here
  • After that I had to use riscv64-unknown-linux-gnu-gdb -tui, then I could debug with TUI option.

I also had to make changes to the CFLAGS option and had to add -gdwarf-2 option because on inspecting the local variables in gdb with info locals command, it was giving CORRUPTED DWARF EXPRESSION error.

IMO, the instructions in the tools page need to be updated with the above instructions.
Thanks.

@sudk1896 sudk1896 changed the title Additional steps required for using tui with gdb for Ubuntu 20.04 LTS for xv6-2021-labs Additional steps required for using tui with gdb in Ubuntu 20.04 LTS for xv6-2021-labs Aug 28, 2022
@nbosio1001
Copy link

Interesting. I am missing riscv64-unknown-linux-gnu-gdb on my system so I run gdb-multiarch. I followed the first two bullet-points.

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