For the convenience of students

This commit is contained in:
Frans Kaashoek 2012-08-23 09:35:00 -04:00
parent 6650cc934a
commit 020acb4f10
1 changed files with 11 additions and 0 deletions

11
printpcs Executable file
View File

@ -0,0 +1,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 $*