xref: /xv6-public/printpcs (revision 020acb4f)
1#!/bin/sh
2
3# Decode the symbols from a panic stack trace on stdin
4
5if which addr2line
6then
7    p="addr2line"
8else
9    p="i386-jos-elf-addr2line"
10fi
11echo grep '^ ' | $p -e kernel $*
12