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

Apple Silicon can't install gdb, lldb instructions needed? #325

Open
aguynamedben opened this issue Jul 30, 2022 · 3 comments
Open

Apple Silicon can't install gdb, lldb instructions needed? #325

aguynamedben opened this issue Jul 30, 2022 · 3 comments

Comments

@aguynamedben
Copy link

aguynamedben commented Jul 30, 2022

Hi, this book is great, but I have an Apple Silicon (M1) computer and brew install gdb fails with:

$ brew install gdb
gdb: The x86_64 architecture is required for this software.
Error: gdb: An unsatisfied requirement failed this build

It seems that gdb is just not supported on Apple Silicon computers.

I'm new to gdb, lldb, and debuggers. It'd be cool if the QEMU chapter showed how to use lldb to debug embedded Rust apps. Thank you!

@aguynamedben
Copy link
Author

I'm not sure how it works under the hood, but QEMU and hardware debugging works if you use VS Code + cortex-m-quickstart + these instructions:

https://christopherjmcclellan.wordpress.com/2019/12/31/debugging-rust-cortex-m-with-vs-code-take-2/

@toblux
Copy link

toblux commented Aug 28, 2022

Using arm-none-eabi-gdb instead of gdb works for me. It's installed with arm-none-eabi-gcc. See https://docs.rust-embedded.org/book/intro/install/macos.html

@Velnbur
Copy link

Velnbur commented Jul 13, 2024

lldb worked for me thanks by this stack overflow comment

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

3 participants