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

debugging: modify labs to use directly buildroot host gdb #227

Open
Tropicao opened this issue Mar 18, 2024 · 2 comments
Open

debugging: modify labs to use directly buildroot host gdb #227

Tropicao opened this issue Mar 18, 2024 · 2 comments
Labels
debugging Debugging/Profiling/Tracing training

Comments

@Tropicao
Copy link
Contributor

We currently advise trainees to download gdb-multiarch from their distro package manager in order to debug applications during the lab.
We could skip this by using directly host-gdb provided by buildroot

This only needs to

  • provide proper instructions to use host-gdb from BR (eg: define CROSS_COMPILE, define GDB=${CROSS_COMPILE}gdb, then use ${GDB} instead of gdb-multiarch
  • re-test gdb labs, both the userspace one and the kernel one
@Tropicao Tropicao added the debugging Debugging/Profiling/Tracing training label Mar 18, 2024
@Tropicao
Copy link
Contributor Author

Previous attempts to do this switch led to gdb being unusable in some environments: for example, using arrows to navigate commands history print some escape sequences in gdb console
Thorough testing will need to be done, especially on advised distributions in training labs (Ubuntu 20.04/22.04/24.04, depending on update order)
Maybe keep gdb-multiarch as an alternative ?

@Tropicao
Copy link
Contributor Author

See also: bootlin/toolchains-builder#30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugging Debugging/Profiling/Tracing training
Projects
None yet
Development

No branches or pull requests

1 participant