
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.
20 строки
422 Б
JSON
20 строки
422 Б
JSON
{
|
|
"llvm-target": "avr-unknown-unknown",
|
|
"build-tags": ["avr", "baremetal", "linux", "arm"],
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"compiler": "avr-gcc",
|
|
"gc": "conservative",
|
|
"linker": "avr-gcc",
|
|
"scheduler": "none",
|
|
"default-stack-size": 256,
|
|
"ldflags": [
|
|
"-T", "targets/avr.ld",
|
|
"-Wl,--gc-sections"
|
|
],
|
|
"extra-files": [
|
|
"src/internal/task/task_stack_avr.S",
|
|
"src/runtime/gc_avr.S"
|
|
],
|
|
"gdb": "avr-gdb"
|
|
}
|