mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
dist: De-duplicated AVR debug config & scripts
Use common debug.sh, debug_srv.sh and gdb.conf for all AVR boards.
This commit is contained in:
parent
741b9d3b2d
commit
edd93411fe
12
boards/common/arduino-atmega/dist/debug.sh
vendored
12
boards/common/arduino-atmega/dist/debug.sh
vendored
@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The setsid command is needed so that Ctrl+C in GDB doesn't kill avarice
|
||||
: ${SETSID:=setsid}
|
||||
|
||||
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
|
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sleep 2
|
||||
avarice $1
|
||||
|
||||
# avarice exits with 1 if the connection is released, therefore we always exit with 0
|
||||
exit 0
|
1
boards/common/arduino-atmega/dist/gdb.conf
vendored
1
boards/common/arduino-atmega/dist/gdb.conf
vendored
@ -1 +0,0 @@
|
||||
set $pc=0x00
|
12
boards/mega-xplained/dist/debug.sh
vendored
12
boards/mega-xplained/dist/debug.sh
vendored
@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The setsid command is needed so that Ctrl+C in GDB doesn't kill avarice
|
||||
: ${SETSID:=setsid}
|
||||
|
||||
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
|
7
boards/mega-xplained/dist/debug_srv.sh
vendored
7
boards/mega-xplained/dist/debug_srv.sh
vendored
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sleep 2
|
||||
avarice $1
|
||||
|
||||
# avarice exits with 1 if the connection is released, therefore we always exit with 0
|
||||
exit 0
|
1
boards/mega-xplained/dist/gdb.conf
vendored
1
boards/mega-xplained/dist/gdb.conf
vendored
@ -1 +0,0 @@
|
||||
set $pc=0x00
|
12
boards/waspmote-pro/dist/debug.sh
vendored
12
boards/waspmote-pro/dist/debug.sh
vendored
@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The setsid command is needed so that Ctrl+C in GDB doesn't kill avarice
|
||||
: ${SETSID:=setsid}
|
||||
|
||||
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
|
7
boards/waspmote-pro/dist/debug_srv.sh
vendored
7
boards/waspmote-pro/dist/debug_srv.sh
vendored
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sleep 2
|
||||
avarice $1
|
||||
|
||||
# avarice exits with 1 if the connection is released, therefore we always exit with 0
|
||||
exit 0
|
1
boards/waspmote-pro/dist/gdb.conf
vendored
1
boards/waspmote-pro/dist/gdb.conf
vendored
@ -1 +0,0 @@
|
||||
set $pc=0x00
|
@ -1,11 +1,12 @@
|
||||
FLASHER = avrdude
|
||||
DIST_PATH = $(BOARDSDIR)/$(BOARD)/dist
|
||||
AVARICE_PATH = $(RIOTTOOLS)/avarice
|
||||
DEBUGSERVER_PORT = 4242
|
||||
DEBUGSERVER = $(DIST_PATH)/debug_srv.sh
|
||||
DEBUGSERVER = $(AVARICE_PATH)/debug_srv.sh
|
||||
DEBUGSERVER_INTERFACE ?=
|
||||
DEBUGSERVER_FLAGS = "-g -j usb $(DEBUGSERVER_INTERFACE) :$(DEBUGSERVER_PORT)"
|
||||
DEBUGGER_FLAGS = "-x $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)"
|
||||
DEBUGGER = $(DIST_PATH)/debug.sh $(DEBUGSERVER_FLAGS) $(DIST_PATH) $(DEBUGSERVER_PORT)
|
||||
DEBUGGER_FLAGS = "-x $(AVARICE_PATH)/gdb.conf $(ELFFILE)"
|
||||
DEBUGGER = "$(AVARICE_PATH)/debug.sh" $(DEBUGSERVER_FLAGS) $(AVARICE_PATH) $(DEBUGSERVER_PORT)
|
||||
|
||||
PROGRAMMER_FLAGS = -p $(subst atmega,m,$(CPU))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user