Blame view

RIOT/boards/cc2538dk/dist/debug.sh 425 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #!/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
  
  # @author Hauke Petersen <hauke.petersen@fu-berlin.de>
  
  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