Files
tinygo/targets/avr.json
T
Ayke van Laethem 43d7f48de4 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.
2020-06-27 01:22:31 +02:00

21 lines
353 B
JSON

{
"build-tags": ["avr", "baremetal", "linux", "arm"],
"goos": "linux",
"goarch": "arm",
"compiler": "avr-gcc",
"gc": "conservative",
"linker": "avr-gcc",
"scheduler": "none",
"cflags": [
"-gdwarf-4"
],
"ldflags": [
"-T", "targets/avr.ld",
"-Wl,--gc-sections"
],
"extra-files": [
"src/runtime/scheduler_avr.S"
],
"gdb": "avr-gdb"
}