Skip to content

Commit 020acb4

Browse files
committed
For the convenience of students
1 parent 6650cc9 commit 020acb4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

printpcs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
# Decode the symbols from a panic stack trace on stdin
4+
5+
if which addr2line
6+
then
7+
p="addr2line"
8+
else
9+
p="i386-jos-elf-addr2line"
10+
fi
11+
echo grep '^ ' | $p -e kernel $*

0 commit comments

Comments
 (0)