gdb-trace 220 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh

if [ $# = 0 ]; then
   blink_pid=$(ps ax | grep blink | grep -v grep | head -1 | awk '{print $1}')
else
   blink_pid=$1
fi

gdb --batch --eval-command="attach $blink_pid" --eval-command="thread apply all bt"