main: support gdb debugging with AVR

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.
This commit is contained in:
Ayke van Laethem
2020-04-14 23:10:31 +02:00
committed by Ron Evans
parent bb27bbcb41
commit 4cc1cdf672
2 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -15,5 +15,6 @@
"extra-files": [
"src/internal/task/task_stack_avr.S",
"src/runtime/gc_avr.S"
]
],
"gdb": "avr-gdb"
}