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

Improve debugging documentation and scripts #69

Open
CharlyCst opened this issue Jun 2, 2024 · 0 comments
Open

Improve debugging documentation and scripts #69

CharlyCst opened this issue Jun 2, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@CharlyCst
Copy link
Owner

We had some issue with getting GDB to work across platforms, causing errors in our just gdb command.

Currently just gdb starts rust-gdb, which is simply a wrapper around the default gdb of the platform. The problem is that the default gdb varies across platforms:

  • On Intel Mac it is gdb-multiarch, which works with RISC-V
  • On older Ubuntu it is gdb which only works for the host platform architecture, so it doesn't work with RISC-V
  • On Arm Mac gdb is not available for the host architecture, so the user must manually install riscv64-elf-gdb

I am not sure what the best solution is to make it works seamlessly for everyone, maybe trying to detect if gdb-multiarch or riscv64-elf-gdb are installed and pick the available one or display an helpful error message?

@CharlyCst CharlyCst added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant