1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/arduino-atmega-common/dist/debug.sh
Anthony Merlino b8e04d8c00 boards/arduino-common: refactored to arduino-atmega-common
Refactors boards/arduino-common to boards/arduino-atmega-common.
Extends boards/arduino-atmega-common to be generic to all atmega based
arduino boards, not just atmega328p.
Removes flags that should be located in cpu framework
2017-02-02 14:11:51 -05:00

9 lines
267 B
Bash

#!/usr/bin/env bash
sleep 2
setsid -w avarice $1 &
#sleep 2 && $2/avr-gdb-wrapper -ex "target remote localhost:$3" $4
sleep 3 && avr-gdb -ex "target remote localhost:$3" $4
# avarice exits with 1 if the connection is released, therefore we always exit with 0
exit 0