1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/pca10000/dist/debug.sh
Hauke Petersen 46a791fd95 board/pca10000: added make targets
- added `reset` target
- added `debug` target
- added `debug-server` target
- adjusted `flash` target
2014-08-21 15:47:10 +02:00

16 lines
369 B
Bash
Executable File

#!/bin/sh
# Start in-circuit debugging on this board: this script starts up the GDB
# client and connects to a GDB server.
#
# Start the GDB server first using the 'make debugserver' target
BINDIR=$1
ELFFILE=$2
# write GDB config file
echo "target extended-remote 127.0.0.1:2331" > $BINDIR/gdb.cfg
# run GDB
arm-none-eabi-gdb -tui -command=$BINDIR/gdb.cfg $ELFFILE