#!/bin/sh if [ $# = 0 ]; then
blink_pid=$(ps h -o pid -C blink | head -1)
else blink_pid=$1 fi gdb --batch --eval-command="attach $blink_pid" --eval-command="thread apply all bt"