summaryrefslogtreecommitdiff
path: root/printpcs
blob: 32b33cc5e0d1a2b4b825ddc3b0d107c1a59a7d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Decode the symbols from a panic stack trace on stdin

if which addr2line
then
    p="addr2line"
else
    p="i386-jos-elf-addr2line"
fi
echo grep '^ ' | $p -e kernel $*