-
Notifications
You must be signed in to change notification settings - Fork 996
main: support gdb debugging with AVR #1057
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
Conversation
|
This PR is now ready. It depends on LLVM 11 to be usable, but that has been merged in #1056. |
|
Something went wrong with the CI with the LLVM 11 build @aykevl you should take a look. Thanks. |
|
Looking into it now, I can't seem to reproduce it locally (only in CI). |
|
Huh, this is triggered by Go 1.15.3. |
|
Managed to find the cause, see: golang/go#42032. Maybe we should just use Go 1.15.2 until it is fixed. |
|
Pushed fix: #1443 |
|
Rebased. |
Be able to run `tinygo gdb -target=arduino examples/serial` and debug a program with the power of a real debugger. Note that this only works on LLVM 11 because older versions have a bug in the AVR backend that cause it to produce invalid debug information: https://reviews.llvm.org/D74213.
|
Rebased again. |
|
🐛 glad to be finally merging, thanks @aykevl |
Be able to run
tinygo gdb -target=arduino ./testdata/alias.goand debug a program with the power of a real debugger.Note that this only works on LLVM 11 (see #1056) because older versions have a bug in the AVR backend that cause it to produce invalid debug information: https://reviews.llvm.org/D74213.