aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/avr.json
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-04-14 23:10:31 +0200
committerRon Evans <[email protected]>2020-12-10 16:44:27 +0100
commit4cc1cdf672820e419a68fa4165923a5d94bbb0e4 (patch)
treed16f9b494e048b66442c3c675e5aa9a682e1642d /targets/avr.json
parentbb27bbcb41d37d78988b571c2d0943ba808cf52d (diff)
downloadtinygo-4cc1cdf672820e419a68fa4165923a5d94bbb0e4.tar.gz
tinygo-4cc1cdf672820e419a68fa4165923a5d94bbb0e4.zip
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.
Diffstat (limited to 'targets/avr.json')
-rw-r--r--targets/avr.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/targets/avr.json b/targets/avr.json
index fdae4b8b3..31c2d9a75 100644
--- a/targets/avr.json
+++ b/targets/avr.json
@@ -15,5 +15,6 @@
"extra-files": [
"src/internal/task/task_stack_avr.S",
"src/runtime/gc_avr.S"
- ]
+ ],
+ "gdb": "avr-gdb"
}