gdb-trace 188 Bytes
Newer Older
1 2 3
#!/bin/sh

if [ $# = 0 ]; then
4
   blink_pid=$(ps h -o pid -C blink | head -1)
5 6 7 8 9 10
else
   blink_pid=$1
fi

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