Commit af0f8b49 authored by Dan Pascu's avatar Dan Pascu

Added script to backtrace blink to stdout while running

parent 56aaa8dd
#!/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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment